saattrupdan commited on
Commit
8b5abf6
1 Parent(s): f9b31f1

fix: Bug when `model_id` isnt in `results_dfs_filtered`

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -337,6 +337,8 @@ def produce_radial_plot(
337
  win_ratios = list()
338
  scores = list()
339
  for language in languages:
 
 
340
  score = results_dfs_filtered[language].loc[model_id][task]
341
  win_ratio = np.mean([
342
  score >= other_score
 
337
  win_ratios = list()
338
  scores = list()
339
  for language in languages:
340
+ if model_id not in results_dfs_filtered[language].index:
341
+ continue
342
  score = results_dfs_filtered[language].loc[model_id][task]
343
  win_ratio = np.mean([
344
  score >= other_score