Spaces:
Sleeping
Sleeping
Add clickable Examples to Learning Mode
Browse files
app.py
CHANGED
|
@@ -267,6 +267,29 @@ with gr.Blocks(title="AnatomyBot") as demo:
|
|
| 267 |
with gr.TabItem("Learning", id="tab_learn"):
|
| 268 |
with gr.Row():
|
| 269 |
q_in = gr.Textbox(label="Anatomy Question", placeholder="e.g. Circle of Willis")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
with gr.Row():
|
| 271 |
b_search = gr.Button("🔍 Search", variant="primary")
|
| 272 |
b_to_viva = gr.Button("🎯 Start VIVA on this Topic", variant="secondary")
|
|
|
|
| 267 |
with gr.TabItem("Learning", id="tab_learn"):
|
| 268 |
with gr.Row():
|
| 269 |
q_in = gr.Textbox(label="Anatomy Question", placeholder="e.g. Circle of Willis")
|
| 270 |
+
|
| 271 |
+
# Clickable Examples
|
| 272 |
+
gr.Examples(
|
| 273 |
+
examples=[
|
| 274 |
+
["Show me the Circle of Willis"],
|
| 275 |
+
["Brachial plexus anatomy"],
|
| 276 |
+
["Carpal bones arrangement"],
|
| 277 |
+
["Layers of the scalp"],
|
| 278 |
+
["Anatomy of the heart chambers"],
|
| 279 |
+
["Cranial nerves and their functions"],
|
| 280 |
+
["Structure of the kidney nephron"],
|
| 281 |
+
["Branches of the abdominal aorta"],
|
| 282 |
+
["Rotator cuff muscles"],
|
| 283 |
+
["Spinal cord cross section"],
|
| 284 |
+
["Femoral triangle anatomy"],
|
| 285 |
+
["Larynx cartilages and membranes"],
|
| 286 |
+
["Portal venous system"],
|
| 287 |
+
["Anatomy of the eyeball"],
|
| 288 |
+
["Bronchopulmonary segments"]
|
| 289 |
+
],
|
| 290 |
+
inputs=q_in
|
| 291 |
+
)
|
| 292 |
+
|
| 293 |
with gr.Row():
|
| 294 |
b_search = gr.Button("🔍 Search", variant="primary")
|
| 295 |
b_to_viva = gr.Button("🎯 Start VIVA on this Topic", variant="secondary")
|