Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Change colormap to PiYG
Browse files- src/results.py +1 -1
src/results.py
CHANGED
|
@@ -98,7 +98,7 @@ def display_tab(tab, df, task, hide_std_errors=True, show_only_differences=False
|
|
| 98 |
]
|
| 99 |
] # Apply only on numeric cells, otherwise the background gradient will not work
|
| 100 |
subset = idx[colored_rows, idx[:]]
|
| 101 |
-
df.background_gradient(cmap="
|
| 102 |
# Format index values: remove prefix and suffix
|
| 103 |
start = len(f"{tab}.leaderboard_") if task == "All" else len(f"{tab}.{task} ")
|
| 104 |
df.format_index(lambda idx: idx[start:].removesuffix(",none"), axis="index")
|
|
|
|
| 98 |
]
|
| 99 |
] # Apply only on numeric cells, otherwise the background gradient will not work
|
| 100 |
subset = idx[colored_rows, idx[:]]
|
| 101 |
+
df.background_gradient(cmap="PiYG", vmin=0, vmax=1, subset=subset, axis=None)
|
| 102 |
# Format index values: remove prefix and suffix
|
| 103 |
start = len(f"{tab}.leaderboard_") if task == "All" else len(f"{tab}.{task} ")
|
| 104 |
df.format_index(lambda idx: idx[start:].removesuffix(",none"), axis="index")
|