Spaces:
AIR-Bench
/
Running on CPU Upgrade

nan commited on
Commit
472ecbd
1 Parent(s): 0531c42

chore: clean up

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -21,14 +21,14 @@ def restart_space():
21
  API.restart_space(repo_id=REPO_ID)
22
 
23
 
24
- # try:
25
- # snapshot_download(
26
- # repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30,
27
- # token=TOKEN
28
- # )
29
- # except Exception as e:
30
- # print(f'failed to download')
31
- # restart_space()
32
 
33
  raw_data = get_raw_eval_results(f"{EVAL_RESULTS_PATH}/AIR-Bench_24.04")
34
 
 
21
  API.restart_space(repo_id=REPO_ID)
22
 
23
 
24
+ try:
25
+ snapshot_download(
26
+ repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30,
27
+ token=TOKEN
28
+ )
29
+ except Exception as e:
30
+ print(f'failed to download')
31
+ restart_space()
32
 
33
  raw_data = get_raw_eval_results(f"{EVAL_RESULTS_PATH}/AIR-Bench_24.04")
34