Spaces:
Running
on
Zero
Running
on
Zero
Add duration param to save quota (#2)
Browse files- Add duration param to save quota (ba84c888613ebe58872c9958b88115bf79367e55)
Co-authored-by: Stas <[email protected]>
app.py
CHANGED
|
@@ -46,7 +46,7 @@ class Pipeline:
|
|
| 46 |
def __del__(self):
|
| 47 |
self.tmp_dir.cleanup()
|
| 48 |
|
| 49 |
-
@spaces.GPU
|
| 50 |
@torch.no_grad()
|
| 51 |
@torch.autocast(device_type="cuda", dtype=torch.bfloat16)
|
| 52 |
def __call__(self, y, seed, num_steps, guidance, timeshift, order):
|
|
|
|
| 46 |
def __del__(self):
|
| 47 |
self.tmp_dir.cleanup()
|
| 48 |
|
| 49 |
+
@spaces.GPU(duration=5)
|
| 50 |
@torch.no_grad()
|
| 51 |
@torch.autocast(device_type="cuda", dtype=torch.bfloat16)
|
| 52 |
def __call__(self, y, seed, num_steps, guidance, timeshift, order):
|