Spaces:
Running
on
Zero
Running
on
Zero
Add duration param to save quota
Browse files
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):
|