Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
alozowski
commited on
Commit
·
aefb9ee
1
Parent(s):
ebdd31b
uncomment the eval file
Browse files- src/submission/submit.py +7 -7
src/submission/submit.py
CHANGED
|
@@ -169,13 +169,13 @@ def add_new_eval(
|
|
| 169 |
f.write(json.dumps(eval_entry))
|
| 170 |
|
| 171 |
print("Uploading eval file")
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
|
| 180 |
# Remove the local file
|
| 181 |
os.remove(out_path)
|
|
|
|
| 169 |
f.write(json.dumps(eval_entry))
|
| 170 |
|
| 171 |
print("Uploading eval file")
|
| 172 |
+
API.upload_file(
|
| 173 |
+
path_or_fileobj=out_path,
|
| 174 |
+
path_in_repo=out_path.split("eval-queue/")[1],
|
| 175 |
+
repo_id=QUEUE_REPO,
|
| 176 |
+
repo_type="dataset",
|
| 177 |
+
commit_message=f"Add {model} to eval queue",
|
| 178 |
+
)
|
| 179 |
|
| 180 |
# Remove the local file
|
| 181 |
os.remove(out_path)
|