Spaces:
Paused
Paused
Clémentine
commited on
Commit
•
4ff9eef
1
Parent(s):
395eff6
cache
Browse files- app.py +2 -0
- src/envs.py +1 -1
app.py
CHANGED
@@ -38,12 +38,14 @@ def restart_space():
|
|
38 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
39 |
|
40 |
try:
|
|
|
41 |
snapshot_download(
|
42 |
repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
43 |
)
|
44 |
except Exception:
|
45 |
restart_space()
|
46 |
try:
|
|
|
47 |
snapshot_download(
|
48 |
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
49 |
)
|
|
|
38 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
39 |
|
40 |
try:
|
41 |
+
print(EVAL_REQUESTS_PATH)
|
42 |
snapshot_download(
|
43 |
repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
44 |
)
|
45 |
except Exception:
|
46 |
restart_space()
|
47 |
try:
|
48 |
+
print(EVAL_RESULTS_PATH)
|
49 |
snapshot_download(
|
50 |
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
51 |
)
|
src/envs.py
CHANGED
@@ -14,7 +14,7 @@ PRIVATE_RESULTS_REPO = "open-llm-leaderboard/private-results"
|
|
14 |
|
15 |
IS_PUBLIC = bool(os.environ.get("IS_PUBLIC", True))
|
16 |
|
17 |
-
CACHE_PATH="
|
18 |
|
19 |
EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue")
|
20 |
EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
|
|
|
14 |
|
15 |
IS_PUBLIC = bool(os.environ.get("IS_PUBLIC", True))
|
16 |
|
17 |
+
CACHE_PATH=os.getenv("HF_HOME", ".")
|
18 |
|
19 |
EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue")
|
20 |
EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
|