Spaces:
Running
Running
Update app.py
Browse files
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
|
| 110 |
-
.
|
| 111 |
-
.
|
| 112 |
-
.
|
|
|
|
| 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 |
|