oberbics commited on
Commit
eeb55bb
·
verified ·
1 Parent(s): 6227cca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -22
app.py CHANGED
@@ -548,11 +548,9 @@ h2 {
548
 
549
  with gr.Blocks(css=custom_css, title="Daten Strukturieren und Analysieren") as demo:
550
  gr.HTML("""
551
- <div style="font-family: 'Source Sans Pro', sans-serif; max-width: 1000px; margin: 0 auto; color: #333;">
552
- <!-- Header Section with Improved Styling -->
553
- <div style="text-align: center; margin-bottom: 2rem; background: linear-gradient(135deg, #2c6bb3 0%, #4e8fd1 100%); padding: 2rem; border-radius: 10px; color: white;">
554
- <h1 style="margin: 0; font-size: 2.5rem; font-weight: 700;">Strukturierung und Visualisierung von historischen Daten</h1>
555
- </div>
556
 
557
  <!-- Quick Summary Box -->
558
  <div style="background-color: #f8f9fa; padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; border-left: 5px solid #4e8fd1; box-shadow: 0 2px 10px rgba(0,0,0,0.05);">
@@ -605,23 +603,7 @@ with gr.Blocks(css=custom_css, title="Daten Strukturieren und Analysieren") as d
605
  </div>
606
  </div>
607
  </div>
608
- <div style="font-family: 'Source Sans Pro', sans-serif; max-width: 1000px; margin: 0 auto; color: #333; line-height: 1.7; font-size: 1.15rem;">
609
- <p style="font-size: 1.3rem; margin-bottom: 1.8rem; color: #2c3e50; font-weight: 400; padding: 0 1rem;">
610
- In dieser Unterrichtseinheit befassen wir uns mit der Strukturierung unstrukturierter historischer Texte und der Visualisierung von extrahierten Daten auf Karten. Die systematische Strukturierung von Daten wird mit einem für Informationsextrahierung trainiertem Sprachmodell durchgeführt, das auf der Question-Answering-Methode basiert. Diese Methode erlaubt es, Informationen mit Hilfe einer Frage zu extrahieren, wie etwa „Wo fand das Erdbeben statt"? Dies ermöglicht die Extrahierung des Ortes, an dem ein Erdbeben stattfand, auch wenn im Text selbst noch andere Orte genannt werden.
611
- </p>
612
- <div style="font-family: 'Source Sans Pro', sans-serif; line-height: 1.7; font-size: 1.15rem; background: #f8f9fa; padding: 20px; border-radius: 8px; margin: 20px 0;">
613
- Die Katastrophe in <span style="background-color: #a8e6cf; font-weight: bold; padding: 2px 5px; border-radius: 3px;" title="Earthquake Location">Japan</span> — 3 Millionen Tote. Mtb. <span style="background-color: #ffdfba; font-weight: bold; padding: 2px 5px; border-radius: 3px;" title="Non-Earthquake Location">London</span>, 4. Sept. (Drahtbericht.) Zu dem Unglück in <span style="background-color: #a8e6cf; font-weight: bold; padding: 2px 5px; border-radius: 3px;" title="Earthquake Location">Japan</span> liegen noch folgende Nachrichten vor: Wie die japanische Gesandtschaft in <span style="background-color: #ffdfba; font-weight: bold; padding: 2px 5px; border-radius: 3px;" title="Non-Earthquake Location">Peking</span> meldet, sind Unterhandlungen mit <span style="background-color: #ffdfba; font-weight: bold; padding: 2px 5px; border-radius: 3px;" title="Non-Earthquake Location">China</span> über die sofortige Lieferung von Lebensmitteln ausgenommen worden. Von <span style="background-color: #ffdfba; font-weight: bold; padding: 2px 5px; border-radius: 3px;" title="Non-Earthquake Location">Peking</span> seien amerikanische, englische und italienische Schiffe mit Lebensmitteln nach <span style="background-color: #a8e6cf; font-weight: bold; padding: 2px 5px; border-radius: 3px;" title="Earthquake Location">Japan</span> abgegangen.
614
- </div>
615
- <div style="display: flex; margin-top: 20px;">
616
- <div style="display: flex; align-items: center; margin-right: 20px;">
617
- <div style="width: 20px; height: 20px; background-color: #a8e6cf; margin-right: 10px; border-radius: 3px;"></div>
618
- <span>Ort des Erdbebens: Japan</span>
619
- </div>
620
- <div style="display: flex; align-items: center;">
621
- <div style="width: 20px; height: 20px; background-color: #ffdfba; margin-right: 10px; border-radius: 3px;"></div>
622
- <span>Andere Orte: London, Peking, China</span>
623
- </div>
624
- </div>
625
  <div style="background: #f8f9fa; padding: 2rem; border-radius: 10px; margin-bottom: 2.5rem; border-left: 5px solid #3498db;">
626
  <h3 style="margin-top: 0; color: #2c3e50; border-bottom: 2px solid #eee; padding-bottom: 0.8rem; font-size: 1.5rem;">
627
  Methodik: Vom unstrukturierten Text zur strukturierten Information
 
548
 
549
  with gr.Blocks(css=custom_css, title="Daten Strukturieren und Analysieren") as demo:
550
  gr.HTML("""
551
+ <div style="text-align: center; margin-bottom: 1rem">
552
+ <h1>Strukturierung und Visualisierung von historischen Daten</h1>
553
+ </div>
 
 
554
 
555
  <!-- Quick Summary Box -->
556
  <div style="background-color: #f8f9fa; padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; border-left: 5px solid #4e8fd1; box-shadow: 0 2px 10px rgba(0,0,0,0.05);">
 
603
  </div>
604
  </div>
605
  </div>
606
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
607
  <div style="background: #f8f9fa; padding: 2rem; border-radius: 10px; margin-bottom: 2.5rem; border-left: 5px solid #3498db;">
608
  <h3 style="margin-top: 0; color: #2c3e50; border-bottom: 2px solid #eee; padding-bottom: 0.8rem; font-size: 1.5rem;">
609
  Methodik: Vom unstrukturierten Text zur strukturierten Information