Spaces:
Running
on
Zero
Running
on
Zero
wangshuai6
commited on
Commit
·
9ef9890
1
Parent(s):
4d3bd2d
init
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ class Pipeline:
|
|
79 |
def __del__(self):
|
80 |
self.tmp_dir.cleanup()
|
81 |
|
82 |
-
|
83 |
@torch.no_grad()
|
84 |
@torch.autocast(device_type="cuda", dtype=torch.bfloat16)
|
85 |
def __call__(self, y, seed, num_steps, guidance, timeshift, order):
|
|
|
79 |
def __del__(self):
|
80 |
self.tmp_dir.cleanup()
|
81 |
|
82 |
+
@spaces.GPU
|
83 |
@torch.no_grad()
|
84 |
@torch.autocast(device_type="cuda", dtype=torch.bfloat16)
|
85 |
def __call__(self, y, seed, num_steps, guidance, timeshift, order):
|