Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,32 +70,33 @@ def init_leaderboard(dataframe):
|
|
70 |
return Leaderboard(
|
71 |
value=dataframe,
|
72 |
datatype=[c.type for c in fields(AutoEvalColumn)],
|
73 |
-
select_columns=SelectColumns(
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
),
|
78 |
search_columns=[AutoEvalColumn.model.name],
|
79 |
hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
bool_checkboxgroup_label="Hide models",
|
95 |
interactive=False,
|
96 |
)
|
97 |
|
98 |
|
|
|
99 |
demo = gr.Blocks(css=custom_css)
|
100 |
with demo:
|
101 |
gr.HTML(TITLE)
|
|
|
70 |
return Leaderboard(
|
71 |
value=dataframe,
|
72 |
datatype=[c.type for c in fields(AutoEvalColumn)],
|
73 |
+
# select_columns=SelectColumns(
|
74 |
+
# default_selection=[c.name for c in fields(AutoEvalColumn) if c.displayed_by_default],
|
75 |
+
# cant_deselect=[c.name for c in fields(AutoEvalColumn) if c.never_hidden],
|
76 |
+
# label="Select Columns to Display:",
|
77 |
+
# ),
|
78 |
search_columns=[AutoEvalColumn.model.name],
|
79 |
hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
|
80 |
+
filter_columns=[
|
81 |
+
# ColumnFilter(AutoEvalColumn.model_type.name, type="checkboxgroup", label="Model types"),
|
82 |
+
# ColumnFilter(AutoEvalColumn.precision.name, type="checkboxgroup", label="Precision"),
|
83 |
+
# ColumnFilter(
|
84 |
+
# AutoEvalColumn.params.name,
|
85 |
+
# type="slider",
|
86 |
+
# min=0.01,
|
87 |
+
# max=150,
|
88 |
+
# label="Select the number of parameters (B)",
|
89 |
+
# ),
|
90 |
+
ColumnFilter(
|
91 |
+
AutoEvalColumn.still_on_hub.name, type="boolean", label="🔑 Show Open Models Only", default=False
|
92 |
+
),
|
93 |
+
],
|
94 |
bool_checkboxgroup_label="Hide models",
|
95 |
interactive=False,
|
96 |
)
|
97 |
|
98 |
|
99 |
+
|
100 |
demo = gr.Blocks(css=custom_css)
|
101 |
with demo:
|
102 |
gr.HTML(TITLE)
|