Spaces:
Running
Running
Clement Christophe
commited on
Commit
Β·
cbe9409
1
Parent(s):
ede354a
pause multilingual
Browse files
app.py
CHANGED
@@ -79,19 +79,29 @@ def restart_space():
|
|
79 |
API.restart_space(repo_id=REPO_ID)
|
80 |
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
try:
|
83 |
-
print(EVAL_REQUESTS_PATH)
|
84 |
snapshot_download(
|
85 |
repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
|
86 |
)
|
|
|
87 |
except Exception:
|
|
|
88 |
restart_space()
|
89 |
try:
|
90 |
-
print(EVAL_RESULTS_PATH)
|
91 |
snapshot_download(
|
92 |
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
|
93 |
)
|
|
|
94 |
except Exception:
|
|
|
95 |
restart_space()
|
96 |
|
97 |
# Span based results
|
@@ -334,12 +344,12 @@ with demo:
|
|
334 |
with gr.Tabs(elem_classes="tab-buttons6") as language_tabs:
|
335 |
LANGUAGES = {
|
336 |
"πΊπΈ English": "open_ended",
|
337 |
-
"π¦πͺ Arabic": "open_ended_arabic",
|
338 |
-
"π«π· French": "open_ended_french",
|
339 |
-
"πͺπΈ Spanish": "open_ended_spanish",
|
340 |
-
"π΅πΉ Portuguese": "open_ended_portuguese",
|
341 |
-
"π·π΄ Romanian": "open_ended_romanian",
|
342 |
-
"π¬π· Greek": "open_ended_greek",
|
343 |
}
|
344 |
|
345 |
for idx, (label, subset) in enumerate(LANGUAGES.items()):
|
|
|
79 |
API.restart_space(repo_id=REPO_ID)
|
80 |
|
81 |
|
82 |
+
print(f"QUEUE_REPO: {QUEUE_REPO}")
|
83 |
+
print(f"RESULTS_REPO: {RESULTS_REPO}")
|
84 |
+
print(f"EVAL_REQUESTS_PATH: {EVAL_REQUESTS_PATH}")
|
85 |
+
print(f"EVAL_RESULTS_PATH: {EVAL_RESULTS_PATH}")
|
86 |
+
print(f"TOKEN: {TOKEN}")
|
87 |
+
|
88 |
try:
|
89 |
+
print(f"EVAL_REQUESTS_PATH: {EVAL_REQUESTS_PATH}")
|
90 |
snapshot_download(
|
91 |
repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
|
92 |
)
|
93 |
+
print(f"EVAL_REQUESTS_PATH downloaded")
|
94 |
except Exception:
|
95 |
+
print("An error occurred while downloading EVAL_REQUESTS_PATH. Please check the connection or the repository settings.")
|
96 |
restart_space()
|
97 |
try:
|
98 |
+
print(f"EVAL_RESULTS_PATH: {EVAL_RESULTS_PATH}")
|
99 |
snapshot_download(
|
100 |
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
|
101 |
)
|
102 |
+
print(f"EVAL_RESULTS_PATH downloaded")
|
103 |
except Exception:
|
104 |
+
print("An error occurred while downloading EVAL_RESULTS_PATH. Please check the connection or the repository settings.")
|
105 |
restart_space()
|
106 |
|
107 |
# Span based results
|
|
|
344 |
with gr.Tabs(elem_classes="tab-buttons6") as language_tabs:
|
345 |
LANGUAGES = {
|
346 |
"πΊπΈ English": "open_ended",
|
347 |
+
# "π¦πͺ Arabic": "open_ended_arabic",
|
348 |
+
# "π«π· French": "open_ended_french",
|
349 |
+
# "πͺπΈ Spanish": "open_ended_spanish",
|
350 |
+
# "π΅πΉ Portuguese": "open_ended_portuguese",
|
351 |
+
# "π·π΄ Romanian": "open_ended_romanian",
|
352 |
+
# "π¬π· Greek": "open_ended_greek",
|
353 |
}
|
354 |
|
355 |
for idx, (label, subset) in enumerate(LANGUAGES.items()):
|