Spaces:
Running
on
L40S
Running
on
L40S
Commit
·
1b78d70
1
Parent(s):
d0f63f0
Update app.py
Browse files
app.py
CHANGED
@@ -568,7 +568,7 @@ scheduler.start()
|
|
568 |
@spaces.GPU()
|
569 |
def encode_space(x):
|
570 |
im_emb, _ = pipe.encode_image(
|
571 |
-
|
572 |
)
|
573 |
|
574 |
im = torchvision.transforms.ToTensor()(x).unsqueeze(0)
|
|
|
568 |
@spaces.GPU()
|
569 |
def encode_space(x):
|
570 |
im_emb, _ = pipe.encode_image(
|
571 |
+
x, DEVICE, 1, output_hidden_state
|
572 |
)
|
573 |
|
574 |
im = torchvision.transforms.ToTensor()(x).unsqueeze(0)
|