Spaces:
Running
Running
Fix visibility and layout
Browse files
app.py
CHANGED
@@ -154,6 +154,9 @@ def change_leaderboard_category(category):
|
|
154 |
task_abbreviation_legend = gr.update(
|
155 |
visible=False,
|
156 |
)
|
|
|
|
|
|
|
157 |
tournament_results_dropdown = gr.update(
|
158 |
visible=False,
|
159 |
)
|
@@ -172,6 +175,10 @@ def change_leaderboard_category(category):
|
|
172 |
visible=True,
|
173 |
)
|
174 |
|
|
|
|
|
|
|
|
|
175 |
tournament_results_dropdown = gr.update(
|
176 |
visible=True,
|
177 |
)
|
@@ -185,6 +192,7 @@ def change_leaderboard_category(category):
|
|
185 |
datatype="markdown",
|
186 |
),
|
187 |
task_abbreviation_legend,
|
|
|
188 |
tournament_results_dropdown,
|
189 |
model_tournament_results_table,
|
190 |
)
|
@@ -313,8 +321,9 @@ with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
|
|
313 |
)
|
314 |
|
315 |
with gr.Row():
|
316 |
-
gr.Markdown("## Tournament results for selected model")
|
317 |
-
|
|
|
318 |
with leaderboard_server.var_lock.ro:
|
319 |
tournament_results_dropdown = gr.Dropdown(
|
320 |
value=None,
|
@@ -323,7 +332,8 @@ with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
|
|
323 |
visible=False,
|
324 |
interactive=True,
|
325 |
)
|
326 |
-
|
|
|
327 |
model_tournament_results_table = gr.DataFrame(
|
328 |
value=None,
|
329 |
datatype="markdown",
|
@@ -339,6 +349,7 @@ with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
|
|
339 |
outputs=[
|
340 |
results_table,
|
341 |
results_table_legend,
|
|
|
342 |
tournament_results_dropdown,
|
343 |
model_tournament_results_table,
|
344 |
],
|
|
|
154 |
task_abbreviation_legend = gr.update(
|
155 |
visible=False,
|
156 |
)
|
157 |
+
tournament_results_title = gr.update(
|
158 |
+
visible=False,
|
159 |
+
)
|
160 |
tournament_results_dropdown = gr.update(
|
161 |
visible=False,
|
162 |
)
|
|
|
175 |
visible=True,
|
176 |
)
|
177 |
|
178 |
+
tournament_results_title = gr.update(
|
179 |
+
visible=True,
|
180 |
+
)
|
181 |
+
|
182 |
tournament_results_dropdown = gr.update(
|
183 |
visible=True,
|
184 |
)
|
|
|
192 |
datatype="markdown",
|
193 |
),
|
194 |
task_abbreviation_legend,
|
195 |
+
tournament_results_title,
|
196 |
tournament_results_dropdown,
|
197 |
model_tournament_results_table,
|
198 |
)
|
|
|
321 |
)
|
322 |
|
323 |
with gr.Row():
|
324 |
+
tournament_results_title = gr.Markdown("## Tournament results for selected model")
|
325 |
+
|
326 |
+
with gr.Row():
|
327 |
with leaderboard_server.var_lock.ro:
|
328 |
tournament_results_dropdown = gr.Dropdown(
|
329 |
value=None,
|
|
|
332 |
visible=False,
|
333 |
interactive=True,
|
334 |
)
|
335 |
+
|
336 |
+
with gr.Row():
|
337 |
model_tournament_results_table = gr.DataFrame(
|
338 |
value=None,
|
339 |
datatype="markdown",
|
|
|
349 |
outputs=[
|
350 |
results_table,
|
351 |
results_table_legend,
|
352 |
+
tournament_results_title,
|
353 |
tournament_results_dropdown,
|
354 |
model_tournament_results_table,
|
355 |
],
|