“WadoodAbdul”
commited on
Commit
•
3a8ab9c
1
Parent(s):
300388f
added back results downloading
Browse files
app.py
CHANGED
@@ -39,20 +39,20 @@ def restart_space():
|
|
39 |
API.restart_space(repo_id=REPO_ID)
|
40 |
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
|
57 |
|
58 |
raw_data, datasets_original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, DATASET_COLS, DATASET_BENCHMARK_COLS, "datasets")
|
|
|
39 |
API.restart_space(repo_id=REPO_ID)
|
40 |
|
41 |
|
42 |
+
try:
|
43 |
+
print(EVAL_REQUESTS_PATH)
|
44 |
+
snapshot_download(
|
45 |
+
repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
|
46 |
+
)
|
47 |
+
except Exception:
|
48 |
+
restart_space()
|
49 |
+
try:
|
50 |
+
print(EVAL_RESULTS_PATH)
|
51 |
+
snapshot_download(
|
52 |
+
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
|
53 |
+
)
|
54 |
+
except Exception:
|
55 |
+
restart_space()
|
56 |
|
57 |
|
58 |
raw_data, datasets_original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, DATASET_COLS, DATASET_BENCHMARK_COLS, "datasets")
|