Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ pipe.to(device=DEVICE)
|
|
125 |
#leave_im_emb.detach().to('cpu')
|
126 |
|
127 |
|
128 |
-
@spaces.GPU()
|
129 |
def generate(in_im_embs):
|
130 |
in_im_embs = in_im_embs.to('cuda').unsqueeze(0).unsqueeze(0)
|
131 |
#im_embs = torch.cat((torch.zeros(1, 1280, device=DEVICE, dtype=dtype), in_im_embs), 0)
|
|
|
125 |
#leave_im_emb.detach().to('cpu')
|
126 |
|
127 |
|
128 |
+
@spaces.GPU(duration=10)
|
129 |
def generate(in_im_embs):
|
130 |
in_im_embs = in_im_embs.to('cuda').unsqueeze(0).unsqueeze(0)
|
131 |
#im_embs = torch.cat((torch.zeros(1, 1280, device=DEVICE, dtype=dtype), in_im_embs), 0)
|