lvkaokao
commited on
Commit
•
259a967
1
Parent(s):
2a6cc68
update model size.
Browse files- src/submission/submit.py +3 -1
src/submission/submit.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import json
|
2 |
import os
|
3 |
from datetime import datetime, timezone
|
|
|
4 |
|
5 |
from huggingface_hub import ModelCard, snapshot_download
|
6 |
|
@@ -213,7 +214,6 @@ def add_new_eval(
|
|
213 |
GLOBAL_COND.acquire()
|
214 |
branch = REPO.active_branch.name
|
215 |
REPO.remotes.origin.pull(branch)
|
216 |
-
REPO.remotes.origin.push(branch)
|
217 |
|
218 |
REPO.index.remove("requests", False, r=True)
|
219 |
|
@@ -224,6 +224,8 @@ def add_new_eval(
|
|
224 |
|
225 |
REPO.index.add([req_git_path, sta_git_path])
|
226 |
commit = REPO.index.commit(f"Add {model} to eval requests/status.")
|
|
|
|
|
227 |
|
228 |
print("git-push release lock..............")
|
229 |
GLOBAL_COND.release()
|
|
|
1 |
import json
|
2 |
import os
|
3 |
from datetime import datetime, timezone
|
4 |
+
import time
|
5 |
|
6 |
from huggingface_hub import ModelCard, snapshot_download
|
7 |
|
|
|
214 |
GLOBAL_COND.acquire()
|
215 |
branch = REPO.active_branch.name
|
216 |
REPO.remotes.origin.pull(branch)
|
|
|
217 |
|
218 |
REPO.index.remove("requests", False, r=True)
|
219 |
|
|
|
224 |
|
225 |
REPO.index.add([req_git_path, sta_git_path])
|
226 |
commit = REPO.index.commit(f"Add {model} to eval requests/status.")
|
227 |
+
REPO.remotes.origin.push(branch)
|
228 |
+
time.sleep(10)
|
229 |
|
230 |
print("git-push release lock..............")
|
231 |
GLOBAL_COND.release()
|