Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ with block:
|
|
121 |
|
122 |
# Display the filtered leaderboard
|
123 |
baseline_value = get_baseline_df(method_names, metric_names)
|
124 |
-
baseline_value = baseline_value.round(4) # Round all numeric
|
125 |
baseline_header = ["Method"] + metric_names
|
126 |
baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
|
127 |
|
|
|
121 |
|
122 |
# Display the filtered leaderboard
|
123 |
baseline_value = get_baseline_df(method_names, metric_names)
|
124 |
+
baseline_value = baseline_value.applymap(lambda x: round(x, 4) if isinstance(x, (int, float)) else x) # Round all numeric values to 4 decimal places
|
125 |
baseline_header = ["Method"] + metric_names
|
126 |
baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
|
127 |
|