Spaces:
Sleeping
Sleeping
Bazsalanszky
commited on
Commit
•
a58d04e
1
Parent(s):
9e4c317
Test
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -154,6 +154,9 @@ def get_request_file_for_model(requests_path, model_name, precision):
|
|
154 |
req_content = json.load(f)
|
155 |
if req_content["status"] in ["FINISHED"] and req_content["precision"] == precision:
|
156 |
request_file = tmp_request_file
|
|
|
|
|
|
|
157 |
return request_file
|
158 |
|
159 |
|
|
|
154 |
req_content = json.load(f)
|
155 |
if req_content["status"] in ["FINISHED"] and req_content["precision"] == precision:
|
156 |
request_file = tmp_request_file
|
157 |
+
break
|
158 |
+
else:
|
159 |
+
print(f"Skipping {tmp_request_file} as it is not finished ({req_content["status"]}) or has wrong precision ({req_content["precision"]})")
|
160 |
return request_file
|
161 |
|
162 |
|