Spaces:
Sleeping
Sleeping
Commit
·
215a9ba
1
Parent(s):
494e25f
Update app.py
Browse files
app.py
CHANGED
@@ -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.to(torch.float32), gemb.to(torch.float32)
|
591 |
|
592 |
demo.launch(share=True,)
|
593 |
|
|
|
587 |
gemb = pali.vision_tower(im.to(dtype).to('cuda')).last_hidden_state
|
588 |
|
589 |
print('pali_enced')
|
590 |
+
return im_emb.to(torch.float32).to('cpu'), gemb.to(torch.float32).to('cpu')
|
591 |
|
592 |
demo.launch(share=True,)
|
593 |
|