djstrong commited on
Commit
b3fcc50
·
verified ·
1 Parent(s): 445721d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -51,9 +51,13 @@ except Exception:
51
  restart_space()
52
  try:
53
  # print(EVAL_RESULTS_PATH)
54
- snapshot_download(
55
- repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
56
- )
 
 
 
 
57
  except Exception:
58
  restart_space()
59
 
 
51
  restart_space()
52
  try:
53
  # print(EVAL_RESULTS_PATH)
54
+ # snapshot_download(
55
+ # repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
56
+ # )
57
+ try:
58
+ subprocess.run(["git", "clone", f"https://{TOKEN}:{TOKEN}@huggingface.co/datasets/{RESULTS_REPO}", EVAL_RESULTS_PATH], check=True)
59
+ except subprocess.CalledProcessError:
60
+ print('Failed to clone repo')
61
  except Exception:
62
  restart_space()
63