Spaces:
Runtime error
Runtime error
Vaibhav Srivastav
commited on
Commit
•
9748913
1
Parent(s):
be4b9ed
localisation -> deutsch
Browse files
app.py
CHANGED
@@ -278,7 +278,7 @@ gradio-app h2, .gradio-app h2 {
|
|
278 |
"""
|
279 |
|
280 |
with gr.Blocks(css=CSS) as demo:
|
281 |
-
gr.Markdown("#
|
282 |
|
283 |
document = gr.Variable()
|
284 |
example_question = gr.Textbox(visible=False)
|
@@ -287,7 +287,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
287 |
with gr.Row(equal_height=True):
|
288 |
with gr.Column():
|
289 |
with gr.Row():
|
290 |
-
gr.Markdown("## 1.
|
291 |
img_clear_button = gr.Button(
|
292 |
"Clear", variant="secondary", elem_id="file-clear", visible=False
|
293 |
)
|
@@ -318,9 +318,9 @@ with gr.Blocks(css=CSS) as demo:
|
|
318 |
)
|
319 |
|
320 |
with gr.Column() as col:
|
321 |
-
gr.Markdown("## 2.
|
322 |
question = gr.Textbox(
|
323 |
-
label="
|
324 |
placeholder="e.g. What is the invoice number?",
|
325 |
lines=1,
|
326 |
max_lines=1,
|
@@ -332,13 +332,13 @@ with gr.Blocks(css=CSS) as demo:
|
|
332 |
)
|
333 |
|
334 |
with gr.Row():
|
335 |
-
clear_button = gr.Button("
|
336 |
submit_button = gr.Button(
|
337 |
-
"
|
338 |
)
|
339 |
with gr.Column():
|
340 |
output_text = gr.Textbox(
|
341 |
-
label="
|
342 |
)
|
343 |
output = gr.JSON(label="Output", visible=False)
|
344 |
|
|
|
278 |
"""
|
279 |
|
280 |
with gr.Blocks(css=CSS) as demo:
|
281 |
+
gr.Markdown("# Demo: Abfragen von Daten aus einem PDF-Dokument mithilfe von Machine Learning")
|
282 |
|
283 |
document = gr.Variable()
|
284 |
example_question = gr.Textbox(visible=False)
|
|
|
287 |
with gr.Row(equal_height=True):
|
288 |
with gr.Column():
|
289 |
with gr.Row():
|
290 |
+
gr.Markdown("## 1. Datei aushwählen", elem_id="select-a-file")
|
291 |
img_clear_button = gr.Button(
|
292 |
"Clear", variant="secondary", elem_id="file-clear", visible=False
|
293 |
)
|
|
|
318 |
)
|
319 |
|
320 |
with gr.Column() as col:
|
321 |
+
gr.Markdown("## 2. Fragen Sie eine Frage")
|
322 |
question = gr.Textbox(
|
323 |
+
label="Fragestellung",
|
324 |
placeholder="e.g. What is the invoice number?",
|
325 |
lines=1,
|
326 |
max_lines=1,
|
|
|
332 |
)
|
333 |
|
334 |
with gr.Row():
|
335 |
+
clear_button = gr.Button("Absenden", variant="secondary")
|
336 |
submit_button = gr.Button(
|
337 |
+
"Löschen", variant="primary", elem_id="submit-button"
|
338 |
)
|
339 |
with gr.Column():
|
340 |
output_text = gr.Textbox(
|
341 |
+
label="Das wahrschneinlichste Ergebnis auf Ihre Frage lautet:", visible=False, elem_id="answer"
|
342 |
)
|
343 |
output = gr.JSON(label="Output", visible=False)
|
344 |
|