Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix: fix the bug in local mode
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def restart_space():
|
|
| 42 |
|
| 43 |
|
| 44 |
try:
|
| 45 |
-
if
|
| 46 |
print("Running in local mode")
|
| 47 |
snapshot_download(
|
| 48 |
repo_id=RESULTS_REPO,
|
|
|
|
| 42 |
|
| 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,
|