Spaces:
Sleeping
Sleeping
Revert to gr.Column and upgrade Gradio to 5.x to fix visibility bug
Browse files- app.py +4 -4
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -710,8 +710,8 @@ with gr.Blocks(title="AnatomyBot - MBBS Anatomy Tutor") as demo:
|
|
| 710 |
current_topic = gr.State("")
|
| 711 |
current_image_state = gr.State(None)
|
| 712 |
|
| 713 |
-
# Welcome Screen (shown first)
|
| 714 |
-
with gr.
|
| 715 |
gr.Markdown(
|
| 716 |
"""
|
| 717 |
# 🩺 Welcome to AnatomyBot
|
|
@@ -754,8 +754,8 @@ with gr.Blocks(title="AnatomyBot - MBBS Anatomy Tutor") as demo:
|
|
| 754 |
with gr.Column(scale=1):
|
| 755 |
pass # Empty column for centering
|
| 756 |
|
| 757 |
-
# Main Application (hidden initially)
|
| 758 |
-
with gr.
|
| 759 |
gr.Markdown(
|
| 760 |
"""
|
| 761 |
# 🩺 AnatomyBot - Your MBBS Anatomy Tutor
|
|
|
|
| 710 |
current_topic = gr.State("")
|
| 711 |
current_image_state = gr.State(None)
|
| 712 |
|
| 713 |
+
# Welcome Screen (shown first)
|
| 714 |
+
with gr.Column(visible=True) as welcome_screen:
|
| 715 |
gr.Markdown(
|
| 716 |
"""
|
| 717 |
# 🩺 Welcome to AnatomyBot
|
|
|
|
| 754 |
with gr.Column(scale=1):
|
| 755 |
pass # Empty column for centering
|
| 756 |
|
| 757 |
+
# Main Application (hidden initially)
|
| 758 |
+
with gr.Column(visible=False, elem_id="main_app_container") as main_app:
|
| 759 |
gr.Markdown(
|
| 760 |
"""
|
| 761 |
# 🩺 AnatomyBot - Your MBBS Anatomy Tutor
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio>=
|
| 2 |
requests>=2.31.0
|
| 3 |
python-dotenv>=1.0.0
|
| 4 |
Pillow>=10.0.0
|
|
|
|
| 1 |
+
gradio>=5.0.0
|
| 2 |
requests>=2.31.0
|
| 3 |
python-dotenv>=1.0.0
|
| 4 |
Pillow>=10.0.0
|