mgokg commited on
Commit
e12f54f
·
verified ·
1 Parent(s): 25b7d79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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=[file_input,text_output], outputs=textoutput)
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()