Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
change colors
Browse files
app.py
CHANGED
@@ -72,8 +72,8 @@ def style_df(df: pd.DataFrame) -> Styler:
|
|
72 |
# new_df['polish_poleval2018_task3_test_10k'] = -new_df['polish_poleval2018_task3_test_10k']
|
73 |
# new_df = new_df.to_frame()
|
74 |
|
75 |
-
leaderboard_df_styled = df.style.background_gradient(cmap="
|
76 |
-
leaderboard_df_styled = leaderboard_df_styled.background_gradient(cmap="
|
77 |
rounding = {'#Params (B)': "{:.1f}"}
|
78 |
for task in Tasks:
|
79 |
rounding[task.value.col_name] = "{:.2f}"
|
|
|
72 |
# new_df['polish_poleval2018_task3_test_10k'] = -new_df['polish_poleval2018_task3_test_10k']
|
73 |
# new_df = new_df.to_frame()
|
74 |
|
75 |
+
leaderboard_df_styled = df.style.background_gradient(cmap="RdYlGn")
|
76 |
+
leaderboard_df_styled = leaderboard_df_styled.background_gradient(cmap="GnYlRd", subset=['poleval2018_task3_test_10k', '#Params (B)'])
|
77 |
rounding = {'#Params (B)': "{:.1f}"}
|
78 |
for task in Tasks:
|
79 |
rounding[task.value.col_name] = "{:.2f}"
|