Update app.py
Browse files
app.py
CHANGED
|
@@ -133,11 +133,11 @@ theme = gr.themes.Soft(
|
|
| 133 |
with gr.Blocks(title="AI Python Tutor", theme=theme, fill_height=True) as demo:
|
| 134 |
# --- Header with Model Selector ---
|
| 135 |
with gr.Row(variant="compact", elem_classes="header-row"):
|
| 136 |
-
# scale=
|
| 137 |
-
with gr.Column(scale=
|
| 138 |
gr.Markdown("## 🐍 AI Python Tutor")
|
| 139 |
|
| 140 |
-
# scale=0
|
| 141 |
with gr.Column(scale=0, min_width=250):
|
| 142 |
model_selector = gr.Dropdown(
|
| 143 |
choices=AVAILABLE_MODELS,
|
|
@@ -147,10 +147,6 @@ with gr.Blocks(title="AI Python Tutor", theme=theme, fill_height=True) as demo:
|
|
| 147 |
container=True,
|
| 148 |
scale=1
|
| 149 |
)
|
| 150 |
-
|
| 151 |
-
# scale=1 spacer pushes everything to the left
|
| 152 |
-
with gr.Column(scale=1):
|
| 153 |
-
pass
|
| 154 |
|
| 155 |
with gr.Row(equal_height=True):
|
| 156 |
# Left Column: Chat & Input
|
|
|
|
| 133 |
with gr.Blocks(title="AI Python Tutor", theme=theme, fill_height=True) as demo:
|
| 134 |
# --- Header with Model Selector ---
|
| 135 |
with gr.Row(variant="compact", elem_classes="header-row"):
|
| 136 |
+
# scale=1: Consumes all available space, pushing the next column to the right
|
| 137 |
+
with gr.Column(scale=1):
|
| 138 |
gr.Markdown("## 🐍 AI Python Tutor")
|
| 139 |
|
| 140 |
+
# scale=0: Takes only minimum required width, sitting on the far right
|
| 141 |
with gr.Column(scale=0, min_width=250):
|
| 142 |
model_selector = gr.Dropdown(
|
| 143 |
choices=AVAILABLE_MODELS,
|
|
|
|
| 147 |
container=True,
|
| 148 |
scale=1
|
| 149 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
with gr.Row(equal_height=True):
|
| 152 |
# Left Column: Chat & Input
|