Spaces:
AIR-Bench
/
Running on CPU Upgrade

nan commited on
Commit
118f4b0
1 Parent(s): 6d20d97

chore: clean up

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -23,14 +23,14 @@ def restart_space():
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
 
 
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