Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
98deb78
1
Parent(s):
b37e7d1
debug
Browse files- src/submission/submit.py +6 -0
src/submission/submit.py
CHANGED
@@ -34,6 +34,12 @@ def add_new_solutions(
|
|
34 |
ensure_all_present: bool = False,
|
35 |
):
|
36 |
# Users must wait MIN_WAIT_TIME_PER_USER_HRS hours between submissions.
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
try:
|
38 |
submitted_ids = get_dataset_config_names(SUBMISSIONS_REPO, token=TOKEN)
|
39 |
except (DatasetNotFoundError, FileNotFoundError):
|
|
|
34 |
ensure_all_present: bool = False,
|
35 |
):
|
36 |
# Users must wait MIN_WAIT_TIME_PER_USER_HRS hours between submissions.
|
37 |
+
|
38 |
+
from huggingface_hub import HfApi
|
39 |
+
|
40 |
+
api = HfApi()
|
41 |
+
logger.info(f"Who am I: {api.whoami(token=TOKEN)}")
|
42 |
+
|
43 |
try:
|
44 |
submitted_ids = get_dataset_config_names(SUBMISSIONS_REPO, token=TOKEN)
|
45 |
except (DatasetNotFoundError, FileNotFoundError):
|