Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Highlight exact_match and change colors
Browse files- 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:
|
| 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)
|