Spaces:
Sleeping
Sleeping
Reorganize layout: Key Learning Points on left, Anatomy Diagram on right
Browse files
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 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|