djstrong commited on
Commit
49a45d1
1 Parent(s): 3ad0620
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,14 +78,14 @@ def style_df(df: pd.DataFrame) -> Styler:
78
 
79
  leaderboard_df_styled = df.style.background_gradient(cmap="RdYlGn")
80
 
81
- inverted_colors_columns = []
82
  if "poleval2018_task3_test_10k" in df.columns:
83
  inverted_colors_columns.append("poleval2018_task3_test_10k")
84
  if '#Params (B)' in df.columns:
85
  inverted_colors_columns.append("#Params (B)")
86
 
87
  leaderboard_df_styled = leaderboard_df_styled.background_gradient(cmap="RdYlGn_r", subset=inverted_colors_columns)
88
- rounding = {'#Params (B)': "{:.1f}"}
89
  for task in Tasks:
90
  rounding[task.value.col_name] = "{:.2f}"
91
  for column_name in ["Average ⬆️", "Avg g", "Avg mc", "Average old", "Avg RAG"]:
 
78
 
79
  leaderboard_df_styled = df.style.background_gradient(cmap="RdYlGn")
80
 
81
+ inverted_colors_columns = ['rank']
82
  if "poleval2018_task3_test_10k" in df.columns:
83
  inverted_colors_columns.append("poleval2018_task3_test_10k")
84
  if '#Params (B)' in df.columns:
85
  inverted_colors_columns.append("#Params (B)")
86
 
87
  leaderboard_df_styled = leaderboard_df_styled.background_gradient(cmap="RdYlGn_r", subset=inverted_colors_columns)
88
+ rounding = {'#Params (B)': "{:.1f}", 'rank': "{:.0f}"}
89
  for task in Tasks:
90
  rounding[task.value.col_name] = "{:.2f}"
91
  for column_name in ["Average ⬆️", "Avg g", "Avg mc", "Average old", "Avg RAG"]: