Spaces:
Sleeping
Sleeping
reduce zerogpu duration
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def read_int_env(name: str, default: int) -> int:
|
|
| 59 |
|
| 60 |
|
| 61 |
ZERO_GPU_SIZE = (os.environ.get("SYNLAYERS_ZERO_GPU_SIZE", "large").strip() or "large").lower()
|
| 62 |
-
ZERO_GPU_DURATION = max(60, read_int_env("SYNLAYERS_ZERO_GPU_DURATION",
|
| 63 |
|
| 64 |
|
| 65 |
def list_example_images(limit: int = 6) -> list[list[str]]:
|
|
|
|
| 59 |
|
| 60 |
|
| 61 |
ZERO_GPU_SIZE = (os.environ.get("SYNLAYERS_ZERO_GPU_SIZE", "large").strip() or "large").lower()
|
| 62 |
+
ZERO_GPU_DURATION = max(60, read_int_env("SYNLAYERS_ZERO_GPU_DURATION", 300))
|
| 63 |
|
| 64 |
|
| 65 |
def list_example_images(limit: int = 6) -> list[list[str]]:
|