UltraRonin commited on
Commit
b721769
·
1 Parent(s): 2ab47ec
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -68,6 +68,7 @@ def init_leaderboard(dataframe):
68
  # pdb.set_trace()
69
  num_cols = dataframe.select_dtypes(include=['float']).columns
70
  styler = dataframe.style.format({col: "{:.1f}" for col in num_cols})
 
71
  return gr.components.Dataframe(
72
  value=styler,
73
  headers=[c.name for c in fields(AutoEvalColumn)],
 
68
  # pdb.set_trace()
69
  num_cols = dataframe.select_dtypes(include=['float']).columns
70
  styler = dataframe.style.format({col: "{:.1f}" for col in num_cols})
71
+ styler = styler.style.apply(lambda x: x[num_cols].style.highlight_max(axis=0) if x.name in num_cols else x, axis=0)
72
  return gr.components.Dataframe(
73
  value=styler,
74
  headers=[c.name for c in fields(AutoEvalColumn)],