Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -67,14 +67,14 @@ def process_file(file):
|
|
67 |
|
68 |
with gr.Blocks(css=custom_css) as demo:
|
69 |
gr.Markdown("### File upload", elem_classes="tab-header")
|
70 |
-
|
71 |
-
|
72 |
with gr.Row():
|
73 |
text_output = gr.Textbox(label="output")
|
74 |
with gr.Row():
|
75 |
file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
|
76 |
with gr.Row():
|
77 |
submit_button = gr.Button("upload")
|
78 |
-
submit_button.click(process_file, inputs=file_input, outputs=text_output)
|
79 |
|
80 |
demo.launch()
|
|
|
67 |
|
68 |
with gr.Blocks(css=custom_css) as demo:
|
69 |
gr.Markdown("### File upload", elem_classes="tab-header")
|
70 |
+
with gr.Row():
|
71 |
+
textoutput = gr.Markdown(label="Antwort", elem_id="md", value="#")
|
72 |
with gr.Row():
|
73 |
text_output = gr.Textbox(label="output")
|
74 |
with gr.Row():
|
75 |
file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
|
76 |
with gr.Row():
|
77 |
submit_button = gr.Button("upload")
|
78 |
+
submit_button.click(process_file, inputs=file_input, outputs=[textoutput,text_output])
|
79 |
|
80 |
demo.launch()
|