Spaces:
Runtime error
Runtime error
rynmurdock
commited on
Commit
•
9b8f9c1
1
Parent(s):
2cb5af9
Update app.py
Browse files
app.py
CHANGED
@@ -196,7 +196,7 @@ def generate(in_im_embs, prompt='the scene'):
|
|
196 |
if nsfw:
|
197 |
gr.Warning("NSFW content detected.")
|
198 |
# TODO could return an automatic dislike of auto dislike on the backend for neither as well; just would need refactoring.
|
199 |
-
return None, im_emb
|
200 |
|
201 |
|
202 |
output.frames[0] = output.frames[0] + list(reversed(output.frames[0]))
|
@@ -587,7 +587,7 @@ def encode_space(x, im):
|
|
587 |
gemb = pali.vision_tower(im.to(dtype).to('cuda')).last_hidden_state
|
588 |
|
589 |
print('pali_enced')
|
590 |
-
return im_emb
|
591 |
|
592 |
demo.launch(share=True,)
|
593 |
|
|
|
196 |
if nsfw:
|
197 |
gr.Warning("NSFW content detected.")
|
198 |
# TODO could return an automatic dislike of auto dislike on the backend for neither as well; just would need refactoring.
|
199 |
+
return None, im_emb, gemb
|
200 |
|
201 |
|
202 |
output.frames[0] = output.frames[0] + list(reversed(output.frames[0]))
|
|
|
587 |
gemb = pali.vision_tower(im.to(dtype).to('cuda')).last_hidden_state
|
588 |
|
589 |
print('pali_enced')
|
590 |
+
return im_emb, gemb
|
591 |
|
592 |
demo.launch(share=True,)
|
593 |
|