tangtang
commited on
Commit
·
8199b76
1
Parent(s):
fed9c39
Update space1
Browse files
src/leaderboard/read_evals.py
CHANGED
|
@@ -160,10 +160,10 @@ def get_raw_eval_results(results_path: str, requests_path: str) -> list[EvalResu
|
|
| 160 |
if f.endswith(".json"):
|
| 161 |
|
| 162 |
# Sort the files by date
|
| 163 |
-
try:
|
| 164 |
-
|
| 165 |
-
except dateutil.parser._parser.ParserError:
|
| 166 |
-
|
| 167 |
|
| 168 |
model_result_filepaths.extend([os.path.join(root, f)])
|
| 169 |
print(model_result_filepaths)
|
|
|
|
| 160 |
if f.endswith(".json"):
|
| 161 |
|
| 162 |
# Sort the files by date
|
| 163 |
+
# try:
|
| 164 |
+
# files.sort(key=lambda x: x.removesuffix(".json").removeprefix("results_")[:-7])
|
| 165 |
+
# except dateutil.parser._parser.ParserError:
|
| 166 |
+
# files = [files[-1]]
|
| 167 |
|
| 168 |
model_result_filepaths.extend([os.path.join(root, f)])
|
| 169 |
print(model_result_filepaths)
|