Hasnain-Ali commited on
Commit
2bff3af
Β·
verified Β·
1 Parent(s): 1a7ea3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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:** {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,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("## 🩺 Symptom Analyzer")
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)