gladguy commited on
Commit
0d1b188
Β·
1 Parent(s): 6ba47c6

Reorganize layout: Key Learning Points on left, Anatomy Diagram on right

Browse files
Files changed (1) hide show
  1. app.py +40 -38
app.py CHANGED
@@ -457,47 +457,49 @@ with gr.Blocks(title="AnatomyBot - MBBS Anatomy Tutor") as demo:
457
  with gr.Tabs() as tabs:
458
  # LEARNING MODE TAB
459
  with gr.Tab("πŸ“š Learning Mode"):
 
460
  with gr.Row():
461
- with gr.Column():
462
- query_input = gr.Textbox(
463
- label="Ask an Anatomy Question",
464
- placeholder="e.g., Show me the Circle of Willis",
465
- lines=2
466
- )
467
-
468
- # Examples moved here - right below the text box
469
- gr.Examples(
470
- examples=[
471
- ["Show me the Circle of Willis"],
472
- ["Brachial plexus anatomy"],
473
- ["Carpal bones arrangement"],
474
- ["Layers of the scalp"],
475
- ["Anatomy of the heart chambers"],
476
- ["Cranial nerves and their functions"],
477
- ["Structure of the kidney nephron"],
478
- ["Branches of the abdominal aorta"],
479
- ["Rotator cuff muscles"],
480
- ["Spinal cord cross section"],
481
- ["Femoral triangle anatomy"],
482
- ["Larynx cartilages and membranes"],
483
- ["Portal venous system"],
484
- ["Anatomy of the eyeball"],
485
- ["Bronchopulmonary segments"]
486
- ],
487
- inputs=query_input
488
- )
489
-
490
- submit_btn = gr.Button("πŸ” Search & Learn", variant="primary", size="lg")
491
- error_output = gr.Markdown(label="Status")
492
-
493
- # VIVA Mode Button
494
- start_viva_btn = gr.Button("🎯 Start VIVA Training", variant="secondary", size="lg")
495
-
496
- with gr.Column():
497
- image_output = gr.Image(label="Anatomy Diagram", type="pil")
498
 
499
  with gr.Row():
500
- info_output = gr.Markdown(label="Key Points to Know")
 
 
 
 
 
 
 
 
 
 
 
501
 
502
  # VIVA MODE TAB
503
  with gr.Tab("🎯 VIVA Training Mode") as viva_tab:
 
457
  with gr.Tabs() as tabs:
458
  # LEARNING MODE TAB
459
  with gr.Tab("πŸ“š Learning Mode"):
460
+ # Search and examples at the top
461
  with gr.Row():
462
+ query_input = gr.Textbox(
463
+ label="Ask an Anatomy Question",
464
+ placeholder="e.g., Show me the Circle of Willis",
465
+ lines=2
466
+ )
467
+
468
+ # Examples
469
+ gr.Examples(
470
+ examples=[
471
+ ["Show me the Circle of Willis"],
472
+ ["Brachial plexus anatomy"],
473
+ ["Carpal bones arrangement"],
474
+ ["Layers of the scalp"],
475
+ ["Anatomy of the heart chambers"],
476
+ ["Cranial nerves and their functions"],
477
+ ["Structure of the kidney nephron"],
478
+ ["Branches of the abdominal aorta"],
479
+ ["Rotator cuff muscles"],
480
+ ["Spinal cord cross section"],
481
+ ["Femoral triangle anatomy"],
482
+ ["Larynx cartilages and membranes"],
483
+ ["Portal venous system"],
484
+ ["Anatomy of the eyeball"],
485
+ ["Bronchopulmonary segments"]
486
+ ],
487
+ inputs=query_input
488
+ )
 
 
 
 
 
 
 
 
 
 
489
 
490
  with gr.Row():
491
+ submit_btn = gr.Button("πŸ” Search & Learn", variant="primary", size="lg")
492
+ start_viva_btn = gr.Button("🎯 Start VIVA Training", variant="secondary", size="lg")
493
+
494
+ error_output = gr.Markdown(label="Status")
495
+
496
+ # Main content: Key Learning Points (left) and Anatomy Diagram (right)
497
+ with gr.Row():
498
+ with gr.Column(scale=1):
499
+ info_output = gr.Markdown(label="πŸ“š Key Learning Points")
500
+
501
+ with gr.Column(scale=1):
502
+ image_output = gr.Image(label="πŸ–ΌοΈ Anatomy Diagram", type="pil")
503
 
504
  # VIVA MODE TAB
505
  with gr.Tab("🎯 VIVA Training Mode") as viva_tab: