Clémentine commited on
Commit
1fb88dc
1 Parent(s): 067b606
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  import pandas as pd
4
  from apscheduler.schedulers.background import BackgroundScheduler
5
  from huggingface_hub import snapshot_download
 
6
 
7
  from src.about import (
8
  CITATION_BUTTON_LABEL,
@@ -44,13 +45,16 @@ try:
44
  snapshot_download(
45
  repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
46
  )
47
- except Exception:
 
 
48
  restart_space()
49
  try:
50
  print(RESULTS_REPO, "to", 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
53
  )
 
54
  except Exception:
55
  restart_space()
56
 
 
3
  import pandas as pd
4
  from apscheduler.schedulers.background import BackgroundScheduler
5
  from huggingface_hub import snapshot_download
6
+ from os import listdir
7
 
8
  from src.about import (
9
  CITATION_BUTTON_LABEL,
 
45
  snapshot_download(
46
  repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
47
  )
48
+ print(listdir(EVAL_REQUESTS_PATH))
49
+ except Exception as e:
50
+ print(e)
51
  restart_space()
52
  try:
53
  print(RESULTS_REPO, "to", EVAL_RESULTS_PATH)
54
  snapshot_download(
55
  repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
56
  )
57
+ print(listdir(EVAL_RESULTS_PATH))
58
  except Exception:
59
  restart_space()
60