Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clean up
Browse files
app.py
CHANGED
@@ -252,10 +252,10 @@ leaderboard_df = filter_models(
|
|
252 |
# [i.value.name for i in Backend],
|
253 |
)
|
254 |
# DataFrameの初期化部分のみを修正
|
255 |
-
|
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,
|
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=
|
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,
|