test
Browse files- src/submission/submit.py +2 -2
src/submission/submit.py
CHANGED
@@ -10,6 +10,7 @@ from src.submission.check_validity import (
|
|
10 |
get_model_size,
|
11 |
is_model_on_hub,
|
12 |
)
|
|
|
13 |
|
14 |
REQUESTED_MODELS = None
|
15 |
USERS_TO_SUBMISSION_DATES = None
|
@@ -110,12 +111,11 @@ def add_new_eval(
|
|
110 |
queue_file = "./eval_queue.json"
|
111 |
|
112 |
## download queue_file from repo using huggun face hub API, update it and upload again
|
113 |
-
queue_file =
|
114 |
path_in_repo=queue_file,
|
115 |
repo_id=QUEUE_REPO,
|
116 |
repo_type="space",
|
117 |
revision="main",
|
118 |
-
token=TOKEN,
|
119 |
)
|
120 |
with open(queue_file, "r") as f:
|
121 |
queue_data = json.load(f)
|
|
|
10 |
get_model_size,
|
11 |
is_model_on_hub,
|
12 |
)
|
13 |
+
from huggingface_hub import hf_hub_download
|
14 |
|
15 |
REQUESTED_MODELS = None
|
16 |
USERS_TO_SUBMISSION_DATES = None
|
|
|
111 |
queue_file = "./eval_queue.json"
|
112 |
|
113 |
## download queue_file from repo using huggun face hub API, update it and upload again
|
114 |
+
queue_file = hf_hub_download(
|
115 |
path_in_repo=queue_file,
|
116 |
repo_id=QUEUE_REPO,
|
117 |
repo_type="space",
|
118 |
revision="main",
|
|
|
119 |
)
|
120 |
with open(queue_file, "r") as f:
|
121 |
queue_data = json.load(f)
|