Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
feat: enable the data downloading
Browse files
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 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 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 |
|