meg-huggingface commited on
Commit
307a0ec
1 Parent(s): 39456a9

Adding more debug statements

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +7 -0
src/leaderboard/read_evals.py CHANGED
@@ -193,10 +193,17 @@ def get_raw_eval_results(results_path: str, requests_path: str) -> list[EvalResu
193
  print(eval_results)
194
  results = []
195
  for v in eval_results.values():
 
 
196
  try:
197
  v.to_dict() # we test if the dict version is complete
 
 
198
  results.append(v)
 
 
199
  except KeyError: # not all eval values present
 
200
  continue
201
 
202
  return results
 
193
  print(eval_results)
194
  results = []
195
  for v in eval_results.values():
196
+ print("Processing: ")
197
+ print(v)
198
  try:
199
  v.to_dict() # we test if the dict version is complete
200
+ print("As dict it is:")
201
+ print(v.to_dict())
202
  results.append(v)
203
+ print("Results is now:")
204
+ print(results)
205
  except KeyError: # not all eval values present
206
+ print("Key Error! Continuing.")
207
  continue
208
 
209
  return results