hysts HF staff commited on
Commit
766a705
1 Parent(s): 0556b59
Files changed (1) hide show
  1. app.py +22 -18
app.py CHANGED
@@ -317,24 +317,28 @@ for col in leaderboard_df_filtered.columns:
317
  with gr.Blocks() as demo_leaderboard:
318
  with gr.Row():
319
  with gr.Column():
320
- search_bar = gr.Textbox(
321
- placeholder=" 🔍 Search for your model (separate multiple queries with `;`) and press ENTER...",
322
- show_label=False,
323
- elem_id="search-bar",
324
- )
325
- shown_columns = gr.CheckboxGroup(
326
- choices=[
327
- c.name for c in fields(AutoEvalColumn) if not c.hidden and not c.never_hidden # and not c.dummy
328
- ],
329
- value=[
330
- c.name
331
- for c in fields(AutoEvalColumn)
332
- if c.displayed_by_default and not c.hidden and not c.never_hidden
333
- ],
334
- label="Select columns to show",
335
- elem_id="column-select",
336
- interactive=True,
337
- )
 
 
 
 
338
  with gr.Row():
339
  deleted_models_visibility = gr.Checkbox(label="Show private/deleted models", value=False)
340
  merged_models_visibility = gr.Checkbox(label="Show merges", value=False)
 
317
  with gr.Blocks() as demo_leaderboard:
318
  with gr.Row():
319
  with gr.Column():
320
+ with gr.Row():
321
+ search_bar = gr.Textbox(
322
+ placeholder=" 🔍 Search for your model (separate multiple queries with `;`) and press ENTER...",
323
+ show_label=False,
324
+ elem_id="search-bar",
325
+ )
326
+ with gr.Row():
327
+ shown_columns = gr.CheckboxGroup(
328
+ choices=[
329
+ c.name
330
+ for c in fields(AutoEvalColumn)
331
+ if not c.hidden and not c.never_hidden # and not c.dummy
332
+ ],
333
+ value=[
334
+ c.name
335
+ for c in fields(AutoEvalColumn)
336
+ if c.displayed_by_default and not c.hidden and not c.never_hidden
337
+ ],
338
+ label="Select columns to show",
339
+ elem_id="column-select",
340
+ interactive=True,
341
+ )
342
  with gr.Row():
343
  deleted_models_visibility = gr.Checkbox(label="Show private/deleted models", value=False)
344
  merged_models_visibility = gr.Checkbox(label="Show merges", value=False)