Spaces:
Runtime error
Runtime error
Tianyi (Alex) Qiu
commited on
Commit
·
487d79e
1
Parent(s):
87d617d
fix errors
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ from src.display.utils import (
|
|
| 26 |
WeightType,
|
| 27 |
Precision
|
| 28 |
)
|
| 29 |
-
from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH,
|
| 30 |
from src.populate import get_evaluation_queue_df, get_leaderboard_df
|
| 31 |
from src.submission.submit import add_new_eval
|
| 32 |
|
|
@@ -37,14 +37,14 @@ def restart_space():
|
|
| 37 |
try:
|
| 38 |
print(EVAL_REQUESTS_PATH)
|
| 39 |
snapshot_download(
|
| 40 |
-
repo_id=
|
| 41 |
)
|
| 42 |
except Exception:
|
| 43 |
restart_space()
|
| 44 |
try:
|
| 45 |
print(EVAL_RESULTS_PATH)
|
| 46 |
snapshot_download(
|
| 47 |
-
repo_id=
|
| 48 |
)
|
| 49 |
except Exception:
|
| 50 |
restart_space()
|
|
|
|
| 26 |
WeightType,
|
| 27 |
Precision
|
| 28 |
)
|
| 29 |
+
from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, DATA_REPO, REPO_ID, TOKEN
|
| 30 |
from src.populate import get_evaluation_queue_df, get_leaderboard_df
|
| 31 |
from src.submission.submit import add_new_eval
|
| 32 |
|
|
|
|
| 37 |
try:
|
| 38 |
print(EVAL_REQUESTS_PATH)
|
| 39 |
snapshot_download(
|
| 40 |
+
repo_id=DATA_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
|
| 41 |
)
|
| 42 |
except Exception:
|
| 43 |
restart_space()
|
| 44 |
try:
|
| 45 |
print(EVAL_RESULTS_PATH)
|
| 46 |
snapshot_download(
|
| 47 |
+
repo_id=DATA_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
|
| 48 |
)
|
| 49 |
except Exception:
|
| 50 |
restart_space()
|