Spaces:
Runtime error
Runtime error
Aaron Mueller
commited on
Commit
·
e7750ca
1
Parent(s):
9adf1c8
debug predictions upload
Browse files
src/submission/check_validity.py
CHANGED
@@ -88,7 +88,7 @@ def already_submitted_models(requested_models_dir: str) -> set[str]:
|
|
88 |
continue
|
89 |
with open(os.path.join(root, file), "r") as f:
|
90 |
info = json.load(f)
|
91 |
-
file_names.append(f"{info['model']}_{info['revision']}_{info['
|
92 |
|
93 |
# Select organisation
|
94 |
if info["model"].count("/") == 0 or "submitted_time" not in info:
|
|
|
88 |
continue
|
89 |
with open(os.path.join(root, file), "r") as f:
|
90 |
info = json.load(f)
|
91 |
+
file_names.append(f"{info['model']}_{info['revision']}_{info['track']}")
|
92 |
|
93 |
# Select organisation
|
94 |
if info["model"].count("/") == 0 or "submitted_time" not in info:
|
src/submission/submit.py
CHANGED
@@ -27,6 +27,7 @@ def add_new_eval(
|
|
27 |
REQUESTED_MODELS, USERS_TO_SUBMISSION_DATES = already_submitted_models(EVAL_REQUESTS_PATH)
|
28 |
|
29 |
out_message = ""
|
|
|
30 |
|
31 |
user_name = ""
|
32 |
model_path = model_name
|
|
|
27 |
REQUESTED_MODELS, USERS_TO_SUBMISSION_DATES = already_submitted_models(EVAL_REQUESTS_PATH)
|
28 |
|
29 |
out_message = ""
|
30 |
+
print(predictions) # debugging
|
31 |
|
32 |
user_name = ""
|
33 |
model_path = model_name
|