Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
move filters
Browse files
app.py
CHANGED
@@ -161,28 +161,7 @@ with demo:
|
|
161 |
show_label=False,
|
162 |
elem_id="search-bar",
|
163 |
)
|
164 |
-
with gr.
|
165 |
-
shown_columns = gr.CheckboxGroup(
|
166 |
-
choices=[
|
167 |
-
c.name
|
168 |
-
for c in fields(AutoEvalColumn)
|
169 |
-
if not c.hidden and not c.never_hidden and not c.dummy
|
170 |
-
],
|
171 |
-
value=[
|
172 |
-
c.name
|
173 |
-
for c in fields(AutoEvalColumn)
|
174 |
-
if c.displayed_by_default and not c.hidden and not c.never_hidden
|
175 |
-
],
|
176 |
-
label="Select columns to show",
|
177 |
-
elem_id="column-select",
|
178 |
-
interactive=True,
|
179 |
-
)
|
180 |
-
with gr.Row():
|
181 |
-
deleted_models_visibility = gr.Checkbox(
|
182 |
-
value=True, label="Show gated/private/deleted models", interactive=True
|
183 |
-
)
|
184 |
-
with gr.Column(min_width=320):
|
185 |
-
#with gr.Box(elem_id="box-filter"):
|
186 |
filter_columns_type = gr.CheckboxGroup(
|
187 |
label="Model types",
|
188 |
choices=[t.to_str() for t in ModelType],
|
@@ -214,6 +193,28 @@ with demo:
|
|
214 |
interactive=True,
|
215 |
elem_id="filter-columns-nshot",
|
216 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
|
218 |
leaderboard_table = gr.components.Dataframe(
|
219 |
value=leaderboard_df[
|
|
|
161 |
show_label=False,
|
162 |
elem_id="search-bar",
|
163 |
)
|
164 |
+
# with gr.Box(elem_id="box-filter"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
filter_columns_type = gr.CheckboxGroup(
|
166 |
label="Model types",
|
167 |
choices=[t.to_str() for t in ModelType],
|
|
|
193 |
interactive=True,
|
194 |
elem_id="filter-columns-nshot",
|
195 |
)
|
196 |
+
with gr.Row():
|
197 |
+
deleted_models_visibility = gr.Checkbox(
|
198 |
+
value=True, label="Show gated/private/deleted models", interactive=True
|
199 |
+
)
|
200 |
+
with gr.Column(min_width=320):
|
201 |
+
with gr.Row():
|
202 |
+
shown_columns = gr.CheckboxGroup(
|
203 |
+
choices=[
|
204 |
+
c.name
|
205 |
+
for c in fields(AutoEvalColumn)
|
206 |
+
if not c.hidden and not c.never_hidden and not c.dummy
|
207 |
+
],
|
208 |
+
value=[
|
209 |
+
c.name
|
210 |
+
for c in fields(AutoEvalColumn)
|
211 |
+
if c.displayed_by_default and not c.hidden and not c.never_hidden
|
212 |
+
],
|
213 |
+
label="Select columns to show",
|
214 |
+
elem_id="column-select",
|
215 |
+
interactive=True,
|
216 |
+
)
|
217 |
+
|
218 |
|
219 |
leaderboard_table = gr.components.Dataframe(
|
220 |
value=leaderboard_df[
|