XufengDuan commited on
Commit
f04439c
1 Parent(s): 0283dd5

update scripts

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -244,12 +244,12 @@ try:
244
  elem_id="column-select",
245
  interactive=True,
246
  )
247
- with gr.Row():
248
- deleted_models_visibility = gr.Checkbox(
249
- value=False, label="Show gated/private/deleted models", interactive=True
250
- )
251
  # with gr.Column(min_width=320):
252
- #with gr.Box(elem_id="box-filter"):
253
  # filter_columns_type = gr.CheckboxGroup(
254
  # label="Model types",
255
  # choices=[t.to_str() for t in utils.ModelType],
@@ -299,24 +299,24 @@ try:
299
  hidden_leaderboard_table_for_search,
300
  shown_columns,
301
  #filter_columns_type,
302
- filter_columns_precision,
303
- filter_columns_size,
304
- deleted_models_visibility,
305
  search_bar,
306
  ],
307
  leaderboard_table,
308
  )
309
  # for selector in [shown_columns, filter_columns_type, filter_columns_precision, filter_columns_size, deleted_models_visibility]:
310
- for selector in [shown_columns, filter_columns_precision, filter_columns_size, deleted_models_visibility]:
311
  selector.change(
312
  update_table,
313
  [
314
  hidden_leaderboard_table_for_search,
315
  shown_columns,
316
  #filter_columns_type,
317
- filter_columns_precision,
318
- filter_columns_size,
319
- deleted_models_visibility,
320
  search_bar,
321
  ],
322
  leaderboard_table,
 
244
  elem_id="column-select",
245
  interactive=True,
246
  )
247
+ # with gr.Row():
248
+ # deleted_models_visibility = gr.Checkbox(
249
+ # value=False, label="Show gated/private/deleted models", interactive=True
250
+ # )
251
  # with gr.Column(min_width=320):
252
+ # with gr.Box(elem_id="box-filter"):
253
  # filter_columns_type = gr.CheckboxGroup(
254
  # label="Model types",
255
  # choices=[t.to_str() for t in utils.ModelType],
 
299
  hidden_leaderboard_table_for_search,
300
  shown_columns,
301
  #filter_columns_type,
302
+ # filter_columns_precision,
303
+ # filter_columns_size,
304
+ # deleted_models_visibility,
305
  search_bar,
306
  ],
307
  leaderboard_table,
308
  )
309
  # for selector in [shown_columns, filter_columns_type, filter_columns_precision, filter_columns_size, deleted_models_visibility]:
310
+ for selector in [shown_columns]:
311
  selector.change(
312
  update_table,
313
  [
314
  hidden_leaderboard_table_for_search,
315
  shown_columns,
316
  #filter_columns_type,
317
+ #filter_columns_precision,
318
+ #filter_columns_size,
319
+ #deleted_models_visibility,
320
  search_bar,
321
  ],
322
  leaderboard_table,