mgokg commited on
Commit
c07956a
·
verified ·
1 Parent(s): b1c9942

Update app.py

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