Prashasst commited on
Commit
21e672a
·
verified ·
1 Parent(s): 08ac7e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -350,9 +350,10 @@ with gr.Blocks() as demo:
350
  pdf_input = gr.File(label="Upload PDF Report")
351
  submit_btn = gr.Button("Process")
352
 
353
- metadata_output = gr.Markdown(label="Metadata")
354
- lab_test_output = gr.Dataframe(label="Lab Test Results")
 
355
 
356
- submit_btn.click(process_pdf, inputs=[pdf_input], outputs=[output])
357
 
358
  demo.launch()
 
350
  pdf_input = gr.File(label="Upload PDF Report")
351
  submit_btn = gr.Button("Process")
352
 
353
+ # metadata_output = gr.Markdown(label="Metadata")
354
+ # lab_test_output = gr.Dataframe(label="Lab Test Results")
355
+ output_display = gr.JSON(label="Extracted Report") # Show JSON output
356
 
357
+ submit_btn.click(process_pdf, inputs=[pdf_input], outputs=[output_display])
358
 
359
  demo.launch()