Spaces:
Runtime error
Runtime error
Fix
Browse files
app.py
CHANGED
@@ -202,24 +202,22 @@ with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
|
|
202 |
|
203 |
with gr.Row():
|
204 |
with gr.Tab('Leaderboard') as leaderboards_tab:
|
205 |
-
|
206 |
-
gr.Markdown(LEADERBOARD_TAB_TITLE_MARKDOWN)
|
207 |
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
)
|
223 |
|
224 |
with gr.Tab('Model details'):
|
225 |
gr.Markdown(MORE_DETAILS_MARKDOWN)
|
|
|
202 |
|
203 |
with gr.Row():
|
204 |
with gr.Tab('Leaderboard') as leaderboards_tab:
|
205 |
+
gr.Markdown(LEADERBOARD_TAB_TITLE_MARKDOWN)
|
|
|
206 |
|
207 |
+
category_of_tasks = gr.Dropdown(
|
208 |
+
choices=[leaderboard_server.tasks_category_overall] + list(leaderboard_server.tasks_categories),
|
209 |
+
label="Category of benchmark",
|
210 |
+
interactive=True,
|
211 |
+
)
|
212 |
+
|
213 |
+
results_table = gr.DataFrame(
|
214 |
+
leaderboard_server.get_leaderboard(),
|
215 |
+
interactive=False,
|
216 |
+
label=None,
|
217 |
+
visible=True,
|
218 |
+
datatype="markdown",
|
219 |
+
elem_classes="leaderboard-table",
|
220 |
+
)
|
|
|
221 |
|
222 |
with gr.Tab('Model details'):
|
223 |
gr.Markdown(MORE_DETAILS_MARKDOWN)
|