Spaces:
Restarting
Restarting
Madhavan Iyengar
commited on
Commit
·
f370751
1
Parent(s):
253562e
try to get decimal points
Browse files
app.py
CHANGED
@@ -52,6 +52,8 @@ except Exception:
|
|
52 |
|
53 |
raw_data, original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, COLS, BENCHMARK_COLS)
|
54 |
leaderboard_df = original_df.copy()
|
|
|
|
|
55 |
|
56 |
(
|
57 |
finished_eval_queue_df,
|
|
|
52 |
|
53 |
raw_data, original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, COLS, BENCHMARK_COLS)
|
54 |
leaderboard_df = original_df.copy()
|
55 |
+
numeric_cols = [col for col in leaderboard_df.columns if leaderboard_df[col].dtype in ['float64', 'float32']]
|
56 |
+
leaderboard_df[numeric_cols] = leaderboard_df[numeric_cols].applymap(lambda x: f"{x:.2f}")
|
57 |
|
58 |
(
|
59 |
finished_eval_queue_df,
|