Spaces:
Runtime error
Runtime error
Try
Browse files
app.py
CHANGED
@@ -490,27 +490,26 @@ def gradio_app():
|
|
490 |
|
491 |
leaderboard_dataframe = leaderboard_server.get_leaderboard(category=leaderboard_server.TASKS_CATEGORY_OVERALL)
|
492 |
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
),
|
501 |
-
|
502 |
-
|
503 |
-
filter_columns=[
|
504 |
-
ColumnFilter("Type", type="checkboxgroup", label="Model types"),
|
505 |
-
ColumnFilter(
|
506 |
-
"# θ (B)",
|
507 |
-
type="slider",
|
508 |
-
min=0.01,
|
509 |
-
max=150, # TODO: Max in leaderboard_dataframe
|
510 |
-
label="Select the number of parameters (B)",
|
511 |
-
),
|
512 |
-
],
|
513 |
-
)
|
514 |
|
515 |
with gr.Row():
|
516 |
leaderboard_table = gr.DataFrame(
|
|
|
490 |
|
491 |
leaderboard_dataframe = leaderboard_server.get_leaderboard(category=leaderboard_server.TASKS_CATEGORY_OVERALL)
|
492 |
|
493 |
+
Leaderboard(
|
494 |
+
value=leaderboard_dataframe,
|
495 |
+
select_columns=SelectColumns(
|
496 |
+
default_selection=None,
|
497 |
+
cant_deselect=["Model"],
|
498 |
+
label="Select Columns to Display:",
|
499 |
+
),
|
500 |
+
search_columns=["Model", "Type"],
|
501 |
+
hide_columns=[],
|
502 |
+
filter_columns=[
|
503 |
+
ColumnFilter("Type", type="checkboxgroup", label="Model types"),
|
504 |
+
ColumnFilter(
|
505 |
+
"# θ (B)",
|
506 |
+
type="slider",
|
507 |
+
min=0.01,
|
508 |
+
max=150, # TODO: Max in leaderboard_dataframe
|
509 |
+
label="Select the number of parameters (B)",
|
510 |
),
|
511 |
+
],
|
512 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
513 |
|
514 |
with gr.Row():
|
515 |
leaderboard_table = gr.DataFrame(
|