andrewrreed HF staff commited on
Commit
3a19901
1 Parent(s): 051e909

update layout

Browse files
Files changed (1) hide show
  1. app.py +30 -32
app.py CHANGED
@@ -149,7 +149,7 @@ with gr.Blocks(
149
  theme=gr.themes.Soft(
150
  primary_hue=gr.themes.colors.sky,
151
  secondary_hue=gr.themes.colors.green,
152
- spacing_size=gr.themes.sizes.spacing_sm,
153
  text_size=gr.themes.sizes.text_sm,
154
  font=[
155
  gr.themes.GoogleFont("Open Sans"),
@@ -173,37 +173,35 @@ with gr.Blocks(
173
  """
174
  )
175
 
176
- with gr.Row():
177
- with gr.Column():
178
- set_selector = gr.Dropdown(
179
- choices=list(CAT_NAME_TO_EXPLANATION.keys()),
180
- label="Select Category",
181
- value="Overall",
182
- info="Select the category to visualize",
183
- )
184
- toggle_annotations = gr.Radio(
185
- choices=[True, False],
186
- label="Overlay Best Model Name",
187
- value=True,
188
- info="Toggle to overlay the name of the best model per month per license",
189
- )
190
- with gr.Column():
191
- min_score = gr.Slider(
192
- minimum=min_elo_score,
193
- maximum=max_elo_score,
194
- value=(max_elo_score - min_elo_score) * 0.3 + min_elo_score,
195
- step=50,
196
- label="Minimum ELO Score",
197
- info="Filter out low scoring models",
198
- )
199
- max_models_per_month = gr.Slider(
200
- value=upper_models_per_month - 2,
201
- minimum=1,
202
- maximum=upper_models_per_month,
203
- step=1,
204
- label="Max Models per Month (per License)",
205
- info="Limit to N best models per month per license to reduce clutter",
206
- )
207
 
208
  # Show plot
209
  plot = gr.Plot()
 
149
  theme=gr.themes.Soft(
150
  primary_hue=gr.themes.colors.sky,
151
  secondary_hue=gr.themes.colors.green,
152
+ # spacing_size=gr.themes.sizes.spacing_sm,
153
  text_size=gr.themes.sizes.text_sm,
154
  font=[
155
  gr.themes.GoogleFont("Open Sans"),
 
173
  """
174
  )
175
 
176
+ with gr.Row(variant="compact"):
177
+ set_selector = gr.Dropdown(
178
+ choices=list(CAT_NAME_TO_EXPLANATION.keys()),
179
+ label="Select Category",
180
+ value="Overall",
181
+ info="Select the category to visualize",
182
+ )
183
+ min_score = gr.Slider(
184
+ minimum=min_elo_score,
185
+ maximum=max_elo_score,
186
+ value=(max_elo_score - min_elo_score) * 0.3 + min_elo_score,
187
+ step=50,
188
+ label="Minimum ELO Score",
189
+ info="Filter out low scoring models",
190
+ )
191
+ max_models_per_month = gr.Slider(
192
+ value=upper_models_per_month - 2,
193
+ minimum=1,
194
+ maximum=upper_models_per_month,
195
+ step=1,
196
+ label="Max Models per Month (per License)",
197
+ info="Limit to N best models per month per license to reduce clutter",
198
+ )
199
+ toggle_annotations = gr.Radio(
200
+ choices=[True, False],
201
+ label="Overlay Best Model Name",
202
+ value=True,
203
+ info="Toggle to overlay the name of the best model per month per license",
204
+ )
 
 
205
 
206
  # Show plot
207
  plot = gr.Plot()