hysts HF staff commited on
Commit
c666df6
1 Parent(s): 70ebccb
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -252,10 +252,10 @@ leaderboard_df = filter_models(
252
  # [i.value.name for i in Backend],
253
  )
254
  # DataFrameの初期化部分のみを修正
255
- initial_columns = ["T"] + [
256
  c.name for c in fields(AutoEvalColumn) if (c.never_hidden or c.displayed_by_default) and c.name != "T"
257
  ]
258
- leaderboard_df = select_columns(leaderboard_df, initial_columns)
259
 
260
 
261
  # Leaderboard demo
@@ -481,7 +481,7 @@ with gr.Blocks() as demo_leaderboard:
481
  # DataFrameコンポーネントの初期化
482
  leaderboard_table = gr.Dataframe(
483
  value=leaderboard_df,
484
- headers=initial_columns,
485
  datatype=TYPES,
486
  elem_id="leaderboard-table",
487
  interactive=False,
 
252
  # [i.value.name for i in Backend],
253
  )
254
  # DataFrameの初期化部分のみを修正
255
+ INITIAL_COLUMNS = ["T"] + [
256
  c.name for c in fields(AutoEvalColumn) if (c.never_hidden or c.displayed_by_default) and c.name != "T"
257
  ]
258
+ leaderboard_df = select_columns(leaderboard_df, INITIAL_COLUMNS)
259
 
260
 
261
  # Leaderboard demo
 
481
  # DataFrameコンポーネントの初期化
482
  leaderboard_table = gr.Dataframe(
483
  value=leaderboard_df,
484
+ headers=INITIAL_COLUMNS,
485
  datatype=TYPES,
486
  elem_id="leaderboard-table",
487
  interactive=False,