Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix: fix the logging
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def restart_space():
|
|
| 43 |
|
| 44 |
try:
|
| 45 |
if os.environ.get("LOCAL_MODE", False):
|
| 46 |
-
print("
|
| 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()
|