Update app.py
Browse files
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])
|