Spaces:
Running
on
Zero
Running
on
Zero
bennyguo
commited on
Commit
·
c038d42
1
Parent(s):
2c25d73
invert zerogpu flag
Browse files
app.py
CHANGED
@@ -70,7 +70,8 @@ print(f"Added {code_source_path} to sys.path")
|
|
70 |
# --- End Repo Setup ---
|
71 |
|
72 |
# --- ZeroGPU Setup ---
|
73 |
-
|
|
|
74 |
print(f"ZeroGPU Enabled: {ENABLE_ZEROGPU}")
|
75 |
# --- End ZeroGPU Setup ---
|
76 |
|
|
|
70 |
# --- End Repo Setup ---
|
71 |
|
72 |
# --- ZeroGPU Setup ---
|
73 |
+
DISABLE_ZEROGPU = os.environ.get("DISABLE_ZEROGPU", "false").lower() in ("true", "1", "t")
|
74 |
+
ENABLE_ZEROGPU = not DISABLE_ZEROGPU
|
75 |
print(f"ZeroGPU Enabled: {ENABLE_ZEROGPU}")
|
76 |
# --- End ZeroGPU Setup ---
|
77 |
|