nathanael-fijalkow commited on
Commit
6f7f3ff
·
1 Parent(s): 6dc9084

fix column name

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -173,6 +173,9 @@ def load_leaderboard() -> list:
173
  )
174
 
175
  df = pd.read_csv(csv_path)
 
 
 
176
  return df.to_dict(orient="records")
177
 
178
  except Exception as e:
 
173
  )
174
 
175
  df = pd.read_csv(csv_path)
176
+ # Map 'legal_rate' column to 'legal_rate_with_retry' if present
177
+ if 'legal_rate_with_retry' not in df.columns and 'legal_rate' in df.columns:
178
+ df['legal_rate_with_retry'] = df['legal_rate']
179
  return df.to_dict(orient="records")
180
 
181
  except Exception as e: