Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Fix check when loading results file
Browse files- src/read_evals.py +1 -1
src/read_evals.py
CHANGED
|
@@ -153,7 +153,7 @@ def get_raw_eval_results(results_path: str) -> List[FullEvalResult]:
|
|
| 153 |
|
| 154 |
# select the latest results
|
| 155 |
for file in files:
|
| 156 |
-
if not (file.startswith("
|
| 157 |
print(f'skip {file}')
|
| 158 |
continue
|
| 159 |
model_result_filepaths.append(os.path.join(root, file))
|
|
|
|
| 153 |
|
| 154 |
# select the latest results
|
| 155 |
for file in files:
|
| 156 |
+
if not (file.startswith("results") and file.endswith(".json")):
|
| 157 |
print(f'skip {file}')
|
| 158 |
continue
|
| 159 |
model_result_filepaths.append(os.path.join(root, file))
|