Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
chore: clean up
Browse files
app.py
CHANGED
@@ -23,14 +23,14 @@ def restart_space():
|
|
23 |
API.restart_space(repo_id=REPO_ID)
|
24 |
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
35 |
raw_data = get_raw_eval_results(f"{EVAL_RESULTS_PATH}/AIR-Bench_24.04")
|
36 |
|
|
|
23 |
API.restart_space(repo_id=REPO_ID)
|
24 |
|
25 |
|
26 |
+
try:
|
27 |
+
snapshot_download(
|
28 |
+
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30,
|
29 |
+
token=TOKEN
|
30 |
+
)
|
31 |
+
except Exception as e:
|
32 |
+
print(f'failed to download')
|
33 |
+
restart_space()
|
34 |
|
35 |
raw_data = get_raw_eval_results(f"{EVAL_RESULTS_PATH}/AIR-Bench_24.04")
|
36 |
|