Spaces:
Running
Running
XufengDuan
commited on
Commit
•
f18b33a
1
Parent(s):
3192808
update scripts
Browse files
app.py
CHANGED
@@ -282,13 +282,13 @@ with demo:
|
|
282 |
)
|
283 |
with gr.Column(min_width=320):
|
284 |
#with gr.Box(elem_id="box-filter"):
|
285 |
-
filter_columns_type = gr.CheckboxGroup(
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
)
|
292 |
filter_columns_precision = gr.CheckboxGroup(
|
293 |
label="Precision",
|
294 |
choices=[i.value.name for i in utils.Precision],
|
@@ -330,7 +330,7 @@ with demo:
|
|
330 |
[
|
331 |
hidden_leaderboard_table_for_search,
|
332 |
shown_columns,
|
333 |
-
filter_columns_type,
|
334 |
filter_columns_precision,
|
335 |
filter_columns_size,
|
336 |
deleted_models_visibility,
|
@@ -338,13 +338,14 @@ with demo:
|
|
338 |
],
|
339 |
leaderboard_table,
|
340 |
)
|
341 |
-
for selector in [shown_columns, filter_columns_type, filter_columns_precision, filter_columns_size, deleted_models_visibility]:
|
|
|
342 |
selector.change(
|
343 |
update_table,
|
344 |
[
|
345 |
hidden_leaderboard_table_for_search,
|
346 |
shown_columns,
|
347 |
-
filter_columns_type,
|
348 |
filter_columns_precision,
|
349 |
filter_columns_size,
|
350 |
deleted_models_visibility,
|
|
|
282 |
)
|
283 |
with gr.Column(min_width=320):
|
284 |
#with gr.Box(elem_id="box-filter"):
|
285 |
+
# filter_columns_type = gr.CheckboxGroup(
|
286 |
+
# label="Model types",
|
287 |
+
# choices=[t.to_str() for t in utils.ModelType],
|
288 |
+
# value=[t.to_str() for t in utils.ModelType],
|
289 |
+
# interactive=True,
|
290 |
+
# elem_id="filter-columns-type",
|
291 |
+
# )
|
292 |
filter_columns_precision = gr.CheckboxGroup(
|
293 |
label="Precision",
|
294 |
choices=[i.value.name for i in utils.Precision],
|
|
|
330 |
[
|
331 |
hidden_leaderboard_table_for_search,
|
332 |
shown_columns,
|
333 |
+
#filter_columns_type,
|
334 |
filter_columns_precision,
|
335 |
filter_columns_size,
|
336 |
deleted_models_visibility,
|
|
|
338 |
],
|
339 |
leaderboard_table,
|
340 |
)
|
341 |
+
# for selector in [shown_columns, filter_columns_type, filter_columns_precision, filter_columns_size, deleted_models_visibility]:
|
342 |
+
for selector in [shown_columns, filter_columns_precision, filter_columns_size, deleted_models_visibility]:
|
343 |
selector.change(
|
344 |
update_table,
|
345 |
[
|
346 |
hidden_leaderboard_table_for_search,
|
347 |
shown_columns,
|
348 |
+
#filter_columns_type,
|
349 |
filter_columns_precision,
|
350 |
filter_columns_size,
|
351 |
deleted_models_visibility,
|