lyimo commited on
Commit
3a0180f
Β·
verified Β·
1 Parent(s): 2343207

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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.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.Box():
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.Box():
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.Box():
347
  gr.Markdown("### πŸ“ˆ ECG Analysis Results")
348
  ecg_analysis_output = gr.HTML(label="ECG Analysis", elem_id="ecg-analysis")
349
 
350
- with 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.Box():
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(