albertvillanova HF staff commited on
Commit
a4b20f4
1 Parent(s): 26e855f

Highlight exact_match and change colors

Browse files
Files changed (1) hide show
  1. src/results.py +2 -2
src/results.py CHANGED
@@ -109,7 +109,7 @@ def clear_results():
109
 
110
 
111
  def highlight_min_max(s):
112
- if s.name.endswith("acc,none") or s.name.endswith("acc_norm,none"):
113
- return np.where(s == np.nanmax(s.values), "background-color:darkgreen", "background-color:darkred")
114
  else:
115
  return [""] * len(s)
 
109
 
110
 
111
  def highlight_min_max(s):
112
+ if s.name.endswith("acc,none") or s.name.endswith("acc_norm,none") or s.name.endswith("exact_match,none"):
113
+ return np.where(s == np.nanmax(s.values), "background-color:green", "background-color:red")
114
  else:
115
  return [""] * len(s)