Clement Christophe commited on
Commit
cbe9409
Β·
1 Parent(s): ede354a

pause multilingual

Browse files
Files changed (1) hide show
  1. app.py +18 -8
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()):