mgyigit commited on
Commit
2a5f723
1 Parent(s): 0dbeb1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 columns to 4 decimal places
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