mgyigit commited on
Commit
a3b281e
·
verified ·
1 Parent(s): bd5bc53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -106,10 +106,11 @@ def update_metrics(selected_benchmarks):
106
  def update_leaderboard(selected_methods, selected_metrics):
107
  df = get_baseline_df(selected_methods, selected_metrics).round(4)
108
  styler = (
109
- df.style
110
- .applymap(style_method, subset=["Method"])
111
- .apply(highlight_top5, axis=0)
112
- .format(precision=4)
 
113
  )
114
  return styler
115
 
 
106
  def update_leaderboard(selected_methods, selected_metrics):
107
  df = get_baseline_df(selected_methods, selected_metrics).round(4)
108
  styler = (
109
+ df
110
+ .style
111
+ .applymap(style_method, subset=["Method"]) # text colours
112
+ .apply(highlight_top5, axis=0) # green shades
113
+ .format(precision=4) # keep tidy numbers
114
  )
115
  return styler
116