mouseland commited on
Commit
062c28f
·
verified ·
1 Parent(s): f16ef34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def image_resize(img, resize=400):
91
  img = img.astype(np.uint8)
92
  return img
93
 
94
- @spaces.GPU
95
  def cellpose_segment(img_input):
96
  img = image_resize(img_input)
97
  masks, flows, _ = model.eval(img, channels=[0,0])
 
91
  img = img.astype(np.uint8)
92
  return img
93
 
94
+ @spaces.GPU(duration=10)
95
  def cellpose_segment(img_input):
96
  img = image_resize(img_input)
97
  masks, flows, _ = model.eval(img, channels=[0,0])