Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ condition_details = {
|
|
| 41 |
"Pulmonary Embolism": {"description": "Blockage in pulmonary arteries.", "recommendation": "Urgent medical attention."},
|
| 42 |
"Fractures": {"description": "Bone break detected.", "recommendation": "Orthopedic evaluation."},
|
| 43 |
"Arthritis": {"description": "Joint inflammation detected.", "recommendation": "Rheumatology consultation."},
|
| 44 |
-
"Osteoporosis": {"description": "Reduced bone density observed.", "recommendation: Bone health specialist consultation."},
|
| 45 |
"Appendicitis": {"description": "Inflammation of the appendix.", "recommendation": "Surgical evaluation."},
|
| 46 |
"Gallstones": {"description": "Stones in the gallbladder detected.", "recommendation": "Gastroenterology consultation."},
|
| 47 |
"Kidney Stones": {"description": "Stones in the kidneys detected.", "recommendation": "Urology consultation."},
|
|
@@ -207,8 +207,8 @@ def create_interface():
|
|
| 207 |
gr.Button("Clear", elem_id="clear_button", scale=0.3).click(lambda: [None, ""], inputs=None, outputs=[img_input, summary_output])
|
| 208 |
|
| 209 |
with gr.TabItem("Report Analysis"):
|
| 210 |
-
pdf_input = gr.File(label="Upload PDF Report", file_types=[".
|
| 211 |
-
summary_output_report = gr.HTML(label="Summary Result")
|
| 212 |
with gr.Row():
|
| 213 |
gr.Button("Analyze Report", elem_id="analyze_button", scale=0.3).click(analyze_report, inputs=pdf_input, outputs=summary_output_report)
|
| 214 |
gr.Button("Clear", elem_id="clear_button", scale=0.3).click(lambda: [None, ""], inputs=None, outputs=[pdf_input, summary_output_report])
|
|
|
|
| 41 |
"Pulmonary Embolism": {"description": "Blockage in pulmonary arteries.", "recommendation": "Urgent medical attention."},
|
| 42 |
"Fractures": {"description": "Bone break detected.", "recommendation": "Orthopedic evaluation."},
|
| 43 |
"Arthritis": {"description": "Joint inflammation detected.", "recommendation": "Rheumatology consultation."},
|
| 44 |
+
"Osteoporosis": {"description": "Reduced bone density observed.", "recommendation": "Bone health specialist consultation."},
|
| 45 |
"Appendicitis": {"description": "Inflammation of the appendix.", "recommendation": "Surgical evaluation."},
|
| 46 |
"Gallstones": {"description": "Stones in the gallbladder detected.", "recommendation": "Gastroenterology consultation."},
|
| 47 |
"Kidney Stones": {"description": "Stones in the kidneys detected.", "recommendation": "Urology consultation."},
|
|
|
|
| 207 |
gr.Button("Clear", elem_id="clear_button", scale=0.3).click(lambda: [None, ""], inputs=None, outputs=[img_input, summary_output])
|
| 208 |
|
| 209 |
with gr.TabItem("Report Analysis"):
|
| 210 |
+
pdf_input = gr.File(label="Upload PDF Report", file_types=[". PDFs"])
|
| 211 |
+
summary_output_report = gr.HTML(label="Summary Result")
|
| 212 |
with gr.Row():
|
| 213 |
gr.Button("Analyze Report", elem_id="analyze_button", scale=0.3).click(analyze_report, inputs=pdf_input, outputs=summary_output_report)
|
| 214 |
gr.Button("Clear", elem_id="clear_button", scale=0.3).click(lambda: [None, ""], inputs=None, outputs=[pdf_input, summary_output_report])
|