hysts HF staff commited on
Commit
45105f7
1 Parent(s): bc502f4
Files changed (1) hide show
  1. app.py +20 -22
app.py CHANGED
@@ -245,28 +245,26 @@ for col in leaderboard_df_filtered.columns:
245
  with gr.Blocks() as demo_leaderboard:
246
  with gr.Row():
247
  with gr.Column():
248
- with gr.Row():
249
- search_bar = gr.Textbox(
250
- placeholder=" 🔍 Search for your model (separate multiple queries with `;`) and press ENTER...",
251
- show_label=False,
252
- elem_id="search-bar",
253
- )
254
- with gr.Row():
255
- shown_columns = gr.CheckboxGroup(
256
- choices=[
257
- c.name
258
- for c in fields(AutoEvalColumn)
259
- if not c.hidden and not c.never_hidden# and not c.dummy
260
- ],
261
- value=[
262
- c.name
263
- for c in fields(AutoEvalColumn)
264
- if c.displayed_by_default and not c.hidden and not c.never_hidden
265
- ],
266
- label="Select columns to show",
267
- elem_id="column-select",
268
- interactive=True,
269
- )
270
  with gr.Row():
271
  deleted_models_visibility = gr.Checkbox(label="Show private/deleted models", value=False)
272
  merged_models_visibility = gr.Checkbox(label="Show merges", value=False)
 
245
  with gr.Blocks() as demo_leaderboard:
246
  with gr.Row():
247
  with gr.Column():
248
+ search_bar = gr.Textbox(
249
+ placeholder=" 🔍 Search for your model (separate multiple queries with `;`) and press ENTER...",
250
+ show_label=False,
251
+ elem_id="search-bar",
252
+ )
253
+ shown_columns = gr.CheckboxGroup(
254
+ choices=[
255
+ c.name
256
+ for c in fields(AutoEvalColumn)
257
+ if not c.hidden and not c.never_hidden# and not c.dummy
258
+ ],
259
+ value=[
260
+ c.name
261
+ for c in fields(AutoEvalColumn)
262
+ if c.displayed_by_default and not c.hidden and not c.never_hidden
263
+ ],
264
+ label="Select columns to show",
265
+ elem_id="column-select",
266
+ interactive=True,
267
+ )
 
 
268
  with gr.Row():
269
  deleted_models_visibility = gr.Checkbox(label="Show private/deleted models", value=False)
270
  merged_models_visibility = gr.Checkbox(label="Show merges", value=False)