albertvillanova HF staff commited on
Commit
e7f29e1
1 Parent(s): 4a05739
Files changed (1) hide show
  1. src/results.py +1 -2
src/results.py CHANGED
@@ -7,7 +7,6 @@ import pandas as pd
7
  import plotly.express as px
8
 
9
  import src.constants as constants
10
- from src.constants import TASKS
11
  from src.hub import glob, load_json_file
12
 
13
 
@@ -164,7 +163,7 @@ def plot_results(df, task):
164
  and (col.endswith("acc,none") or col.endswith("acc_norm,none") or col.endswith("exact_match,none"))
165
  ]
166
  ]
167
- tasks = {key: tupl[0] for key, tupl in TASKS.items()}
168
  tasks["leaderboard_math"] = tasks["leaderboard_math_hard"]
169
  subtasks = {tupl[1]: tupl[0] for tupl in constants.SUBTASKS.get(task, [])}
170
  if task == "All":
 
7
  import plotly.express as px
8
 
9
  import src.constants as constants
 
10
  from src.hub import glob, load_json_file
11
 
12
 
 
163
  and (col.endswith("acc,none") or col.endswith("acc_norm,none") or col.endswith("exact_match,none"))
164
  ]
165
  ]
166
+ tasks = {key: tupl[0] for key, tupl in constants.TASKS.items()}
167
  tasks["leaderboard_math"] = tasks["leaderboard_math_hard"]
168
  subtasks = {tupl[1]: tupl[0] for tupl in constants.SUBTASKS.get(task, [])}
169
  if task == "All":