Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -164,13 +164,13 @@ def create_interface():
|
|
| 164 |
img_input = gr.Image(label="Upload Chest X-ray", type="pil")
|
| 165 |
img_output = gr.HTML()
|
| 166 |
summary_output = gr.HTML(label="Summary Result")
|
| 167 |
-
gr.Button("Analyze X-ray", elem_id="analyze_button"
|
| 168 |
|
| 169 |
with gr.TabItem("Report Analysis"):
|
| 170 |
pdf_input = gr.File(label="Upload PDF Report", file_types=[".pdf"])
|
| 171 |
pdf_output = gr.Textbox(label="Extracted Summary", lines=10)
|
| 172 |
summary_output_report = gr.Textbox(label="Summary Result", lines=5)
|
| 173 |
-
gr.Button("Analyze Report", elem_id="analyze_button"
|
| 174 |
|
| 175 |
return demo
|
| 176 |
|
|
|
|
| 164 |
img_input = gr.Image(label="Upload Chest X-ray", type="pil")
|
| 165 |
img_output = gr.HTML()
|
| 166 |
summary_output = gr.HTML(label="Summary Result")
|
| 167 |
+
gr.Button("Analyze X-ray", elem_id="analyze_button", scale=0.5).click(predict_xray, inputs=img_input, outputs=[img_output, summary_output])
|
| 168 |
|
| 169 |
with gr.TabItem("Report Analysis"):
|
| 170 |
pdf_input = gr.File(label="Upload PDF Report", file_types=[".pdf"])
|
| 171 |
pdf_output = gr.Textbox(label="Extracted Summary", lines=10)
|
| 172 |
summary_output_report = gr.Textbox(label="Summary Result", lines=5)
|
| 173 |
+
gr.Button("Analyze Report", elem_id="analyze_button", scale=0.5).click(analyze_report, inputs=pdf_input, outputs=[pdf_output, summary_output_report])
|
| 174 |
|
| 175 |
return demo
|
| 176 |
|