Spaces:
Restarting
on
CPU Upgrade
Restarting
on
CPU Upgrade
tests
Browse files
app.py
CHANGED
@@ -215,14 +215,16 @@ with demo:
|
|
215 |
interactive=True,
|
216 |
)
|
217 |
|
218 |
-
leaderboard_df_styled = leaderboard_df.style.background_gradient(cmap="viridis")
|
219 |
|
220 |
-
|
221 |
-
value=leaderboard_df_styled[
|
222 |
[c.name for c in fields(AutoEvalColumn) if c.never_hidden]
|
223 |
+ shown_columns.value
|
224 |
+ [AutoEvalColumn.dummy.name]
|
225 |
-
]
|
|
|
|
|
|
|
|
|
226 |
headers=[c.name for c in fields(AutoEvalColumn) if c.never_hidden] + shown_columns.value,
|
227 |
datatype=TYPES,
|
228 |
elem_id="leaderboard-table",
|
|
|
215 |
interactive=True,
|
216 |
)
|
217 |
|
|
|
218 |
|
219 |
+
leaderboard_table_value=leaderboard_df[
|
|
|
220 |
[c.name for c in fields(AutoEvalColumn) if c.never_hidden]
|
221 |
+ shown_columns.value
|
222 |
+ [AutoEvalColumn.dummy.name]
|
223 |
+
]
|
224 |
+
leaderboard_df_styled = leaderboard_table_value.style.background_gradient(cmap="viridis")
|
225 |
+
|
226 |
+
leaderboard_table = gr.components.Dataframe(
|
227 |
+
value=leaderboard_df_styled,
|
228 |
headers=[c.name for c in fields(AutoEvalColumn) if c.never_hidden] + shown_columns.value,
|
229 |
datatype=TYPES,
|
230 |
elem_id="leaderboard-table",
|