Update app.py
Browse files
app.py
CHANGED
|
@@ -315,14 +315,14 @@ with gr.Blocks(title="Cardiac ECG Analysis System", theme=gr.themes.Soft()) as a
|
|
| 315 |
with gr.Row():
|
| 316 |
with gr.Column(scale=1):
|
| 317 |
# Input components
|
| 318 |
-
with gr.
|
| 319 |
gr.Markdown("### π ECG Image")
|
| 320 |
ecg_image = gr.Image(type="pil", label="Upload ECG Image")
|
| 321 |
# Display fixed model info
|
| 322 |
gr.Markdown("**Vision Model:** llama-3.2-90b-vision-preview")
|
| 323 |
analyze_button = gr.Button("Analyze ECG Image", variant="primary")
|
| 324 |
|
| 325 |
-
with gr.
|
| 326 |
gr.Markdown("### π Patient Information")
|
| 327 |
patient_history_text = gr.Textbox(
|
| 328 |
lines=8,
|
|
@@ -335,7 +335,7 @@ with gr.Blocks(title="Cardiac ECG Analysis System", theme=gr.themes.Soft()) as a
|
|
| 335 |
)
|
| 336 |
load_history_button = gr.Button("Load Patient History from File")
|
| 337 |
|
| 338 |
-
with gr.
|
| 339 |
gr.Markdown("### π§ Assessment Settings")
|
| 340 |
# Display fixed model info
|
| 341 |
gr.Markdown("**Chat Model:** llama-3.3-70b-versatile")
|
|
@@ -343,18 +343,18 @@ with gr.Blocks(title="Cardiac ECG Analysis System", theme=gr.themes.Soft()) as a
|
|
| 343 |
|
| 344 |
with gr.Column(scale=1):
|
| 345 |
# Output components
|
| 346 |
-
with gr.
|
| 347 |
gr.Markdown("### π ECG Analysis Results")
|
| 348 |
ecg_analysis_output = gr.HTML(label="ECG Analysis", elem_id="ecg-analysis")
|
| 349 |
|
| 350 |
-
with gr.
|
| 351 |
gr.Markdown("### π Medical Assessment")
|
| 352 |
assessment_output = gr.HTML(label="Assessment", elem_id="assessment-output")
|
| 353 |
|
| 354 |
gr.Markdown("## π¨ββοΈ Doctor's Consultation")
|
| 355 |
gr.Markdown("Ask follow-up questions about the patient's ECG results and medical condition.")
|
| 356 |
|
| 357 |
-
with gr.
|
| 358 |
chatbot = gr.Chatbot(label="Consultation", height=400)
|
| 359 |
with gr.Row():
|
| 360 |
message = gr.Textbox(
|
|
|
|
| 315 |
with gr.Row():
|
| 316 |
with gr.Column(scale=1):
|
| 317 |
# Input components
|
| 318 |
+
with gr.Group(): # Replaced gr.Box()
|
| 319 |
gr.Markdown("### π ECG Image")
|
| 320 |
ecg_image = gr.Image(type="pil", label="Upload ECG Image")
|
| 321 |
# Display fixed model info
|
| 322 |
gr.Markdown("**Vision Model:** llama-3.2-90b-vision-preview")
|
| 323 |
analyze_button = gr.Button("Analyze ECG Image", variant="primary")
|
| 324 |
|
| 325 |
+
with gr.Group(): # Replaced gr.Box()
|
| 326 |
gr.Markdown("### π Patient Information")
|
| 327 |
patient_history_text = gr.Textbox(
|
| 328 |
lines=8,
|
|
|
|
| 335 |
)
|
| 336 |
load_history_button = gr.Button("Load Patient History from File")
|
| 337 |
|
| 338 |
+
with gr.Group(): # Replaced gr.Box()
|
| 339 |
gr.Markdown("### π§ Assessment Settings")
|
| 340 |
# Display fixed model info
|
| 341 |
gr.Markdown("**Chat Model:** llama-3.3-70b-versatile")
|
|
|
|
| 343 |
|
| 344 |
with gr.Column(scale=1):
|
| 345 |
# Output components
|
| 346 |
+
with gr.Group(): # Replaced gr.Box()
|
| 347 |
gr.Markdown("### π ECG Analysis Results")
|
| 348 |
ecg_analysis_output = gr.HTML(label="ECG Analysis", elem_id="ecg-analysis")
|
| 349 |
|
| 350 |
+
with gr.Group(): # Replaced gr.Box()
|
| 351 |
gr.Markdown("### π Medical Assessment")
|
| 352 |
assessment_output = gr.HTML(label="Assessment", elem_id="assessment-output")
|
| 353 |
|
| 354 |
gr.Markdown("## π¨ββοΈ Doctor's Consultation")
|
| 355 |
gr.Markdown("Ask follow-up questions about the patient's ECG results and medical condition.")
|
| 356 |
|
| 357 |
+
with gr.Group(): # Replaced gr.Box()
|
| 358 |
chatbot = gr.Chatbot(label="Consultation", height=400)
|
| 359 |
with gr.Row():
|
| 360 |
message = gr.Textbox(
|