Clémentine commited on
Commit
9185c5b
1 Parent(s): 3d87820

change token passing

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ os.makedirs("scored", exist_ok=True)
28
  # Display the results
29
  eval_results = {}
30
  for level in range(1, 4):
31
- eval_results[level] = load_dataset(f"{OWNER}/BALM_ResultsLevel{level}", token=BALM_TOKEN, split=SPLIT)
32
 
33
  eval_dataframe_1 = pd.DataFrame(eval_results[1].remove_columns("mail"))
34
  eval_dataframe_2 = pd.DataFrame(eval_results[2].remove_columns("mail"))
@@ -37,7 +37,7 @@ eval_dataframe_3 = pd.DataFrame(eval_results[3].remove_columns("mail"))
37
  # Gold answers
38
  gold_results = {}
39
  for level in range(1, 4):
40
- level_dataset = load_dataset(f"{OWNER}/BALM", f"2023_level{level}", split=SPLIT, token=BALM_TOKEN)
41
  gold_results[level] = {row["task_id"]: row["ground_truth"] for row in level_dataset}
42
 
43
 
 
28
  # Display the results
29
  eval_results = {}
30
  for level in range(1, 4):
31
+ eval_results[level] = load_dataset(f"{OWNER}/BALM_ResultsLevel{level}", use_auth_token=BALM_TOKEN, split=SPLIT)
32
 
33
  eval_dataframe_1 = pd.DataFrame(eval_results[1].remove_columns("mail"))
34
  eval_dataframe_2 = pd.DataFrame(eval_results[2].remove_columns("mail"))
 
37
  # Gold answers
38
  gold_results = {}
39
  for level in range(1, 4):
40
+ level_dataset = load_dataset(f"{OWNER}/BALM", f"2023_level{level}", split=SPLIT, use_auth_token=BALM_TOKEN)
41
  gold_results[level] = {row["task_id"]: row["ground_truth"] for row in level_dataset}
42
 
43