Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,12 +68,12 @@ def process_file(file):
|
|
| 68 |
with gr.Blocks() as demo:
|
| 69 |
gr.Markdown("### File upload", elem_classes="tab-header")
|
| 70 |
with gr.Row():
|
| 71 |
-
|
| 72 |
text_output = gr.Textbox(label="output")
|
| 73 |
with gr.Row():
|
| 74 |
file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
|
| 75 |
with gr.Row():
|
| 76 |
submit_button = gr.Button("upload")
|
| 77 |
-
submit_button.click(process_file, inputs=file_input, outputs=text_output)
|
| 78 |
|
| 79 |
demo.launch()
|
|
|
|
| 68 |
with gr.Blocks() 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="# PR")
|
| 72 |
text_output = gr.Textbox(label="output")
|
| 73 |
with gr.Row():
|
| 74 |
file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
|
| 75 |
with gr.Row():
|
| 76 |
submit_button = gr.Button("upload")
|
| 77 |
+
submit_button.click(process_file, inputs=file_input, outputs=[text_output, textoutput])
|
| 78 |
|
| 79 |
demo.launch()
|