Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -56,12 +56,11 @@ def process_file(file):
|
|
56 |
with gr.Blocks() as demo:
|
57 |
gr.Markdown("### File upload", elem_classes="tab-header")
|
58 |
with gr.Row():
|
59 |
-
textoutput = gr.Markdown()
|
60 |
text_output = gr.Textbox(label="output")
|
61 |
with gr.Row():
|
62 |
file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
|
63 |
with gr.Row():
|
64 |
submit_button = gr.Button("upload")
|
65 |
-
submit_button.click(process_file, inputs=
|
66 |
|
67 |
demo.launch()
|
|
|
56 |
with gr.Blocks() as demo:
|
57 |
gr.Markdown("### File upload", elem_classes="tab-header")
|
58 |
with gr.Row():
|
|
|
59 |
text_output = gr.Textbox(label="output")
|
60 |
with gr.Row():
|
61 |
file_input = gr.File(label="Wähle eine PDF-Datei aus", type="filepath")
|
62 |
with gr.Row():
|
63 |
submit_button = gr.Button("upload")
|
64 |
+
submit_button.click(process_file, inputs=file_input, outputs=text_output)
|
65 |
|
66 |
demo.launch()
|