Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -557,21 +557,20 @@ with gr.Blocks(css=custom_css, title="Daten Strukturieren und Analysieren") as d
|
|
557 |
<h3 style="color: #2c6bb3; margin-top: 0; margin-bottom: 15px; font-size: 1.4rem;">Kurz erklärt: Was macht diese Anwendung?</h3>
|
558 |
|
559 |
<ol style="padding-left: 20px; margin-bottom: 0;">
|
560 |
-
|
561 |
-
<strong style="color: #2c6bb3;">Textanalyse-Tool:</strong> Findet automatisch wichtige Informationen in alten Zeitungsartikeln, wie Erdbeben-Orte oder Berichterstattungsstädte.
|
562 |
</li>
|
563 |
-
|
564 |
<li style="margin-bottom: 15px; font-size: 1.1rem; line-height: 1.5;">
|
565 |
-
<strong style="color: #2c6bb3;">
|
566 |
</li>
|
567 |
-
|
|
|
|
|
|
|
568 |
<li style="margin-bottom: 15px; font-size: 1.1rem; line-height: 1.5;">
|
569 |
-
<strong style="color: #2c6bb3;">
|
570 |
</li>
|
571 |
|
572 |
-
|
573 |
-
<strong style="color: #2c6bb3;">Forschungshilfe:</strong> Organisiert historische Daten zu strukturierten, leicht analysierbaren Informationen.
|
574 |
-
</li>
|
575 |
</ol>
|
576 |
</div>
|
577 |
|
@@ -623,10 +622,10 @@ with gr.Blocks(css=custom_css, title="Daten Strukturieren und Analysieren") as d
|
|
623 |
</li>
|
624 |
|
625 |
<li style="margin-bottom: 1.5rem;">
|
626 |
-
<strong style="color: #2c3e50; font-size: 1.2rem;">Question-Answering-Methode</strong>: Das Sprachmodell
|
627 |
<ul style="margin-top: 1rem; padding-left: 2rem; font-size: 1.15rem;">
|
628 |
-
<li style="margin-bottom: 0.8rem;"><code style="background: #f0f0f0; padding: 0.3rem 0.5rem; border-radius: 4px; font-size: 1.1rem;">"earthquake
|
629 |
-
<li style="margin-bottom: 0.8rem;"><code style="background: #f0f0f0; padding: 0.3rem 0.5rem; border-radius: 4px; font-size: 1.1rem;">"dateline
|
630 |
</ul>
|
631 |
</li>
|
632 |
|
@@ -654,7 +653,7 @@ with gr.Blocks(css=custom_css, title="Daten Strukturieren und Analysieren") as d
|
|
654 |
</div>
|
655 |
<div style="background: #f8f9fa; padding: 2rem; border-radius: 10px; margin-bottom: 2.5rem; border-left: 5px solid #27ae60;">
|
656 |
<h3 style="margin-top: 0; color: #2c3e50; border-bottom: 2px solid #eee; padding-bottom: 0.8rem; font-size: 1.5rem;">
|
657 |
-
|
658 |
</h3>
|
659 |
|
660 |
<p style="margin-bottom: 1.8rem; font-size: 1.2rem;">
|
@@ -705,12 +704,12 @@ with gr.Blocks(css=custom_css, title="Daten Strukturieren und Analysieren") as d
|
|
705 |
with gr.Column():
|
706 |
template = gr.Textbox(
|
707 |
label="JSON Template",
|
708 |
-
value='{"earthquake
|
709 |
lines=5
|
710 |
)
|
711 |
text = gr.Textbox(
|
712 |
label="Hier unstrukturierten Text einfügen",
|
713 |
-
value="Die Zahl der
|
714 |
lines=8
|
715 |
)
|
716 |
extract_btn = gr.Button("Extrahieren Sie Informationen", variant="primary")
|
|
|
557 |
<h3 style="color: #2c6bb3; margin-top: 0; margin-bottom: 15px; font-size: 1.4rem;">Kurz erklärt: Was macht diese Anwendung?</h3>
|
558 |
|
559 |
<ol style="padding-left: 20px; margin-bottom: 0;">
|
560 |
+
|
|
|
561 |
</li>
|
|
|
562 |
<li style="margin-bottom: 15px; font-size: 1.1rem; line-height: 1.5;">
|
563 |
+
<strong style="color: #2c6bb3;">Textanalyse:</strong> Finden Sie automatisch wichtige Informationen in historische Zeitungsartikeln mit Hilfe eines kleinen Sprachmodells.
|
564 |
</li>
|
565 |
+
|
566 |
+
<li style="margin-bottom: 0; font-size: 1.1rem; line-height: 1.5;">
|
567 |
+
<strong style="color: #2c6bb3;">Textorganisaton:</strong> Organisieren Sie historische Daten zu strukturierten, analysierbaren Informationen.
|
568 |
+
|
569 |
<li style="margin-bottom: 15px; font-size: 1.1rem; line-height: 1.5;">
|
570 |
+
<strong style="color: #2c6bb3;">Visualisierung:</strong> Visualisieren Sie gefunden Orte auf einer Karte.
|
571 |
</li>
|
572 |
|
573 |
+
|
|
|
|
|
574 |
</ol>
|
575 |
</div>
|
576 |
|
|
|
622 |
</li>
|
623 |
|
624 |
<li style="margin-bottom: 1.5rem;">
|
625 |
+
<strong style="color: #2c3e50; font-size: 1.2rem;">Question-Answering-Methode</strong>: Das Sprachmodell füllt die Lehren Felder mit den Antwortn auf die Frage:
|
626 |
<ul style="margin-top: 1rem; padding-left: 2rem; font-size: 1.15rem;">
|
627 |
+
<li style="margin-bottom: 0.8rem;"><code style="background: #f0f0f0; padding: 0.3rem 0.5rem; border-radius: 4px; font-size: 1.1rem;">"What are the earthquake locations": ""</code> → "Japan"</li>
|
628 |
+
<li style="margin-bottom: 0.8rem;"><code style="background: #f0f0f0; padding: 0.3rem 0.5rem; border-radius: 4px; font-size: 1.1rem;">"What is the place name in the dateline": ""</code> → "Paris"</li>
|
629 |
</ul>
|
630 |
</li>
|
631 |
|
|
|
653 |
</div>
|
654 |
<div style="background: #f8f9fa; padding: 2rem; border-radius: 10px; margin-bottom: 2.5rem; border-left: 5px solid #27ae60;">
|
655 |
<h3 style="margin-top: 0; color: #2c3e50; border-bottom: 2px solid #eee; padding-bottom: 0.8rem; font-size: 1.5rem;">
|
656 |
+
Mapping
|
657 |
</h3>
|
658 |
|
659 |
<p style="margin-bottom: 1.8rem; font-size: 1.2rem;">
|
|
|
704 |
with gr.Column():
|
705 |
template = gr.Textbox(
|
706 |
label="JSON Template",
|
707 |
+
value='{"What are the earthquake locations": "", "What is the place name in the dateline": "", "What is the source of information": "", "What is the communication form": ""}',
|
708 |
lines=5
|
709 |
)
|
710 |
text = gr.Textbox(
|
711 |
label="Hier unstrukturierten Text einfügen",
|
712 |
+
value="Die Zahl der Erdbebenopfer in Japan. Paris, 12. Sept. Der japanische Konsul in Marseille veröffentlicht nachstehendes offizielles Telegramm, das er heute aus Japan erhalten hat: „Die Zahl der Toten beträgt in Tokio laut einer von der Polizei vorgenommenen Zählung mehr als 60000. Die Zahl der Verwundeten beläuft sich auf ungefähr 500000. In Jokohama beträgt die Zahl der Opfer 110 000, was ungefähr ein Viertel der gesamten Bevölkerung dieser Stadt ausmacht. In den Bezirken von Chiba und Kanagama ist die Zahl der Opfer gleichfalls beträchtlich, doch wurde die Zählung noch nicht zu Ende geführt",
|
713 |
lines=8
|
714 |
)
|
715 |
extract_btn = gr.Button("Extrahieren Sie Informationen", variant="primary")
|