boyiwei commited on
Commit
9b87f84
1 Parent(s): 7422514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def format_floats(x):
28
  def baseline_load_data(model, dataset, setting, criteria):
29
  file_path = f'versions/{model}_{dataset}_{setting}_{criteria}.csv' # Replace with your file paths
30
  df = pd.read_csv(file_path)
31
- df = df.applymap(format_floats)
32
 
33
  # we only want specific columns and in a specific order
34
  if dataset == 'news':
 
28
  def baseline_load_data(model, dataset, setting, criteria):
29
  file_path = f'versions/{model}_{dataset}_{setting}_{criteria}.csv' # Replace with your file paths
30
  df = pd.read_csv(file_path)
31
+ df = df.map(format_floats)
32
 
33
  # we only want specific columns and in a specific order
34
  if dataset == 'news':