Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def create_medical_report(symptoms):
|
|
88 |
f"Patient Symptoms: {translated_symptoms}\n"
|
89 |
f"Primary Diagnosis: {diagnosis}\n"
|
90 |
f"Affected System: {system}\n"
|
91 |
-
f"Consult
|
92 |
f"Expert Analysis:\n{expert_analysis}\n\n"
|
93 |
"Key Questions for Your Doctor:\n"
|
94 |
"1. Is this condition acute or chronic?\n"
|
@@ -118,7 +118,7 @@ with gr.Blocks() as interface:
|
|
118 |
with gr.Column(scale=1):
|
119 |
gr.Markdown("## π₯ MedExpert")
|
120 |
gr.Markdown("AI-powered medical diagnosis system.")
|
121 |
-
nav_buttons = gr.Radio(["π Home", "π Diagnosis"], value="Home")
|
122 |
|
123 |
with gr.Column(scale=4):
|
124 |
with gr.Group(visible=True) as home_section:
|
@@ -140,7 +140,7 @@ with gr.Blocks() as interface:
|
|
140 |
gr.Markdown("π Click on **Diagnosis** above to start your health checkup!")
|
141 |
|
142 |
with gr.Group(visible=False) as diagnostic_section:
|
143 |
-
gr.Markdown("## π©Ί
|
144 |
symptoms_input = gr.Textbox(label="Describe your symptoms", placeholder="e.g., headache, fever, nausea...")
|
145 |
analyze_btn = gr.Button("Analyze Symptoms", variant="primary")
|
146 |
report_output = gr.Textbox(label="Medical Report", interactive=False)
|
|
|
88 |
f"Patient Symptoms: {translated_symptoms}\n"
|
89 |
f"Primary Diagnosis: {diagnosis}\n"
|
90 |
f"Affected System: {system}\n"
|
91 |
+
f"Consult: {specialist}\n\n"
|
92 |
f"Expert Analysis:\n{expert_analysis}\n\n"
|
93 |
"Key Questions for Your Doctor:\n"
|
94 |
"1. Is this condition acute or chronic?\n"
|
|
|
118 |
with gr.Column(scale=1):
|
119 |
gr.Markdown("## π₯ MedExpert")
|
120 |
gr.Markdown("AI-powered medical diagnosis system.")
|
121 |
+
nav_buttons = gr.Radio(["π Home", "π Diagnosis"], value="π Home")
|
122 |
|
123 |
with gr.Column(scale=4):
|
124 |
with gr.Group(visible=True) as home_section:
|
|
|
140 |
gr.Markdown("π Click on **Diagnosis** above to start your health checkup!")
|
141 |
|
142 |
with gr.Group(visible=False) as diagnostic_section:
|
143 |
+
gr.Markdown("## π©Ί DiagnoGen AI")
|
144 |
symptoms_input = gr.Textbox(label="Describe your symptoms", placeholder="e.g., headache, fever, nausea...")
|
145 |
analyze_btn = gr.Button("Analyze Symptoms", variant="primary")
|
146 |
report_output = gr.Textbox(label="Medical Report", interactive=False)
|