meg-huggingface commited on
Commit
313cc30
1 Parent(s): e55239d

Adding debug print statements

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. main_backend.py +1 -0
app.py CHANGED
@@ -48,6 +48,7 @@ except Exception:
48
  print("Could not download snapshot. Restarting.")
49
  restart_space()
50
  try:
 
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
  )
 
48
  print("Could not download snapshot. Restarting.")
49
  restart_space()
50
  try:
51
+ print("Downloading snapshot from %s to %s" % (RESULTS_REPO, EVAL_RESULTS_PATH))
52
  snapshot_download(
53
  repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30, token=TOKEN
54
  )
main_backend.py CHANGED
@@ -21,6 +21,7 @@ RUNNING_STATUS = "RUNNING"
21
  FINISHED_STATUS = "FINISHED"
22
  FAILED_STATUS = "FAILED"
23
 
 
24
  snapshot_download(repo_id=RESULTS_REPO, revision="main", local_dir=EVAL_RESULTS_PATH_BACKEND, repo_type="dataset", token=TOKEN, max_workers=60)
25
  snapshot_download(repo_id=QUEUE_REPO, revision="main", local_dir=EVAL_REQUESTS_PATH_BACKEND, repo_type="dataset", token=TOKEN, max_workers=60)
26
 
 
21
  FINISHED_STATUS = "FINISHED"
22
  FAILED_STATUS = "FAILED"
23
 
24
+ print("Downloading snapshot from %s to %s" % (RESULTS_REPO, EVAL_RESULTS_PATH_BACKEND))
25
  snapshot_download(repo_id=RESULTS_REPO, revision="main", local_dir=EVAL_RESULTS_PATH_BACKEND, repo_type="dataset", token=TOKEN, max_workers=60)
26
  snapshot_download(repo_id=QUEUE_REPO, revision="main", local_dir=EVAL_REQUESTS_PATH_BACKEND, repo_type="dataset", token=TOKEN, max_workers=60)
27