Spaces:
Running on Zero
Running on Zero
Set ZeroGPU request duration to 20 seconds
Browse files
app.py
CHANGED
|
@@ -3512,7 +3512,7 @@ def _preload_weights_enabled() -> bool:
|
|
| 3512 |
|
| 3513 |
|
| 3514 |
def _spaces_gpu(fn):
|
| 3515 |
-
duration = max(1, min(int(os.environ.get("SPACES_GPU_DURATION", "
|
| 3516 |
return spaces.GPU(duration=duration)(fn)
|
| 3517 |
|
| 3518 |
|
|
|
|
| 3512 |
|
| 3513 |
|
| 3514 |
def _spaces_gpu(fn):
|
| 3515 |
+
duration = max(1, min(int(os.environ.get("SPACES_GPU_DURATION", "20")), 20))
|
| 3516 |
return spaces.GPU(duration=duration)(fn)
|
| 3517 |
|
| 3518 |
|