Spaces:
AIR-Bench
/
Running on CPU Upgrade

nan commited on
Commit
16fb1b0
·
1 Parent(s): 201744e

fix: fix the logging

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def restart_space():
43
 
44
  try:
45
  if os.environ.get("LOCAL_MODE", False):
46
- print("Running in local mode")
47
  snapshot_download(
48
  repo_id=RESULTS_REPO,
49
  local_dir=EVAL_RESULTS_PATH,
@@ -52,6 +52,8 @@ try:
52
  etag_timeout=30,
53
  token=TOKEN,
54
  )
 
 
55
  except Exception:
56
  print("failed to download")
57
  restart_space()
 
43
 
44
  try:
45
  if os.environ.get("LOCAL_MODE", False):
46
+ print("Loading the data")
47
  snapshot_download(
48
  repo_id=RESULTS_REPO,
49
  local_dir=EVAL_RESULTS_PATH,
 
52
  etag_timeout=30,
53
  token=TOKEN,
54
  )
55
+ else:
56
+ print("Running in local mode")
57
  except Exception:
58
  print("failed to download")
59
  restart_space()