Spaces:
AIR-Bench
/
Running on CPU Upgrade

nan commited on
Commit
e22a0ca
1 Parent(s): 9f44d20

feat: enable the data downloading

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -19,14 +19,13 @@ from src.benchmarks import DOMAIN_COLS_QA, LANG_COLS_QA, DOMAIN_COLS_LONG_DOC, L
19
  def restart_space():
20
  API.restart_space(repo_id=REPO_ID)
21
 
22
- # try:
23
- # print(EVAL_RESULTS_PATH)
24
- # snapshot_download(
25
- # repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30,
26
- # token=TOKEN
27
- # )
28
- # except Exception:
29
- # restart_space()
30
 
31
  raw_data = get_raw_eval_results(EVAL_RESULTS_PATH)
32
 
 
19
  def restart_space():
20
  API.restart_space(repo_id=REPO_ID)
21
 
22
+ try:
23
+ snapshot_download(
24
+ repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30,
25
+ token=TOKEN
26
+ )
27
+ except Exception:
28
+ restart_space()
 
29
 
30
  raw_data = get_raw_eval_results(EVAL_RESULTS_PATH)
31