Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix: fix the update_metric_qa
Browse files
app.py
CHANGED
@@ -22,14 +22,14 @@ def restart_space():
|
|
22 |
API.restart_space(repo_id=REPO_ID)
|
23 |
|
24 |
|
25 |
-
try:
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
except Exception as e:
|
31 |
-
|
32 |
-
|
33 |
|
34 |
raw_data = get_raw_eval_results(f"{EVAL_RESULTS_PATH}/AIR-Bench_24.04")
|
35 |
|
@@ -149,6 +149,7 @@ with demo:
|
|
149 |
selected_rerankings,
|
150 |
search_bar,
|
151 |
show_anonymous,
|
|
|
152 |
],
|
153 |
leaderboard_table,
|
154 |
queue=True
|
@@ -187,6 +188,7 @@ with demo:
|
|
187 |
selected_noreranker,
|
188 |
search_bar_retriever,
|
189 |
show_anonymous,
|
|
|
190 |
],
|
191 |
lb_table_retriever,
|
192 |
queue=True
|
|
|
22 |
API.restart_space(repo_id=REPO_ID)
|
23 |
|
24 |
|
25 |
+
# try:
|
26 |
+
# snapshot_download(
|
27 |
+
# repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30,
|
28 |
+
# token=TOKEN
|
29 |
+
# )
|
30 |
+
# except Exception as e:
|
31 |
+
# print(f'failed to download')
|
32 |
+
# restart_space()
|
33 |
|
34 |
raw_data = get_raw_eval_results(f"{EVAL_RESULTS_PATH}/AIR-Bench_24.04")
|
35 |
|
|
|
149 |
selected_rerankings,
|
150 |
search_bar,
|
151 |
show_anonymous,
|
152 |
+
show_revision_and_timestamp,
|
153 |
],
|
154 |
leaderboard_table,
|
155 |
queue=True
|
|
|
188 |
selected_noreranker,
|
189 |
search_bar_retriever,
|
190 |
show_anonymous,
|
191 |
+
show_revision_and_timestamp,
|
192 |
],
|
193 |
lb_table_retriever,
|
194 |
queue=True
|