omarash2016 commited on
Commit
a8a258c
·
verified ·
1 Parent(s): fe47762

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
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=0 forces the column to only be as wide as its content (approx)
137
- with gr.Column(scale=0, min_width=250):
138
  gr.Markdown("## 🐍 AI Python Tutor")
139
 
140
- # scale=0 keeps this compact next to the title
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