djstrong commited on
Commit
09af846
1 Parent(s): d885a59
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -84,7 +84,10 @@ def update_table(
84
  print('3', len(filtered_df))
85
  df = select_columns(filtered_df, columns)
86
  print('4', len(df))
87
- return df
 
 
 
88
 
89
 
90
  def search_table(df: pd.DataFrame, query: str) -> pd.DataFrame:
@@ -222,6 +225,7 @@ with demo:
222
  + [AutoEvalColumn.dummy.name]
223
  ]
224
  leaderboard_df_styled = leaderboard_table_value.style.background_gradient(cmap="viridis")
 
225
 
226
  leaderboard_table = gr.components.Dataframe(
227
  value=leaderboard_df_styled,
 
84
  print('3', len(filtered_df))
85
  df = select_columns(filtered_df, columns)
86
  print('4', len(df))
87
+
88
+ leaderboard_df_styled = df.style.background_gradient(cmap="viridis")
89
+ leaderboard_df_styled = leaderboard_df_styled.style.format("{:.2f}")
90
+ return leaderboard_df_styled
91
 
92
 
93
  def search_table(df: pd.DataFrame, query: str) -> pd.DataFrame:
 
225
  + [AutoEvalColumn.dummy.name]
226
  ]
227
  leaderboard_df_styled = leaderboard_table_value.style.background_gradient(cmap="viridis")
228
+ leaderboard_df_styled = leaderboard_df_styled.style.format("{:.2f}")
229
 
230
  leaderboard_table = gr.components.Dataframe(
231
  value=leaderboard_df_styled,