Spaces:
Runtime error
Runtime error
Commit
·
ac93cff
1
Parent(s):
40ff455
fix a bug: index error. Empty results list.
Browse files- src/loaders.py +4 -1
src/loaders.py
CHANGED
@@ -34,7 +34,10 @@ def load_raw_eval_results(results_path: Union[Path, str]) -> List[FullEvalResult
|
|
34 |
try:
|
35 |
eval_result = FullEvalResult.init_from_json_file(model_result_filepath)
|
36 |
except UnicodeDecodeError:
|
37 |
-
print(f"loading file failed. {model_result_filepath}")
|
|
|
|
|
|
|
38 |
continue
|
39 |
print(f"file loaded: {model_result_filepath}")
|
40 |
timestamp = eval_result.timestamp
|
|
|
34 |
try:
|
35 |
eval_result = FullEvalResult.init_from_json_file(model_result_filepath)
|
36 |
except UnicodeDecodeError:
|
37 |
+
print(f"loading file failed since UnicodeDecodeError. {model_result_filepath}")
|
38 |
+
continue
|
39 |
+
except IndexError:
|
40 |
+
print(f"loading file failed since IndexError. {model_result_filepath}")
|
41 |
continue
|
42 |
print(f"file loaded: {model_result_filepath}")
|
43 |
timestamp = eval_result.timestamp
|