Spaces:
Runtime error
Runtime error
Commit
Β·
3a19901
1
Parent(s):
051e909
update layout
Browse files
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 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 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()
|