Spaces:
Sleeping
Sleeping
Commit
·
9b77130
1
Parent(s):
2927b74
basically delirious lol
Browse files
app.py
CHANGED
@@ -139,6 +139,7 @@ def generate_gpu(in_im_embs):
|
|
139 |
im_emb = im_emb.detach().to('cpu').to(torch.float32)
|
140 |
return output, im_emb
|
141 |
|
|
|
142 |
def generate(in_im_embs):
|
143 |
output, im_emb = generate_gpu(in_im_embs)
|
144 |
nsfw = maybe_nsfw(output.frames[0][len(output.frames[0])//2])
|
|
|
139 |
im_emb = im_emb.detach().to('cpu').to(torch.float32)
|
140 |
return output, im_emb
|
141 |
|
142 |
+
@spaces.GPU()
|
143 |
def generate(in_im_embs):
|
144 |
output, im_emb = generate_gpu(in_im_embs)
|
145 |
nsfw = maybe_nsfw(output.frames[0][len(output.frames[0])//2])
|