rynmurdock commited on
Commit
0d0b2b8
·
verified ·
1 Parent(s): 34e28a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)