yentinglin commited on
Commit
33ab555
·
verified ·
1 Parent(s): bd9b30d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -201,8 +201,9 @@ with demo:
201
  info="Select columns to display",
202
  )
203
  with gr.Group():
 
204
  leaderboard_table = gr.Dataframe(
205
- value=leaderboard_df,
206
  wrap=True,
207
  height=1000,
208
  column_widths=[400, 110] + [(260 + len(c)) for c in leaderboard_df.columns[1:]],
 
201
  info="Select columns to display",
202
  )
203
  with gr.Group():
204
+ sorted_leaderboard_df = agg_df(leaderboard_df, agg="mean")
205
  leaderboard_table = gr.Dataframe(
206
+ value=sorted_leaderboard_df, #leaderboard_df,
207
  wrap=True,
208
  height=1000,
209
  column_widths=[400, 110] + [(260 + len(c)) for c in leaderboard_df.columns[1:]],