mgokg commited on
Commit
0c69a85
·
verified ·
1 Parent(s): 9466957

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- #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=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()