djstrong commited on
Commit
d885a59
1 Parent(s): 2699972
Files changed (1) hide show
  1. app.py +6 -4
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
- leaderboard_table = gr.components.Dataframe(
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",