mgyigit commited on
Commit
0a959e9
·
verified ·
1 Parent(s): d6d6765

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,8 +108,8 @@ def update_leaderboard(selected_methods, selected_metrics):
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
 
@@ -256,8 +256,8 @@ with block:
256
  styler = (
257
  baseline_value
258
  .style
 
259
  .applymap(style_method, subset=["Method"]) # text colours
260
- .apply(highlight_top5, axis=0) # green shades
261
  .format(precision=4) # keep tidy numbers
262
  )
263
 
 
108
  styler = (
109
  df
110
  .style
111
+ .apply(highlight_top5, axis=0, subset=numeric_cols) # green shades
112
  .applymap(style_method, subset=["Method"]) # text colours
 
113
  .format(precision=4) # keep tidy numbers
114
  )
115
 
 
256
  styler = (
257
  baseline_value
258
  .style
259
+ .apply(highlight_top5, axis=0, subset=numeric_cols) # green shades
260
  .applymap(style_method, subset=["Method"]) # text colours
 
261
  .format(precision=4) # keep tidy numbers
262
  )
263