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