Update app.py
Browse files
app.py
CHANGED
|
@@ -97,6 +97,7 @@ def image_resize(img, resize=400):
|
|
| 97 |
# masks, flows, _ = model.eval(img, channels=[0,0])
|
| 98 |
# return masks, flows
|
| 99 |
|
|
|
|
| 100 |
def cellpose_segment(img_input):
|
| 101 |
img = image_resize(img_input)
|
| 102 |
#masks, flows = run_model_gpu(model, img)
|
|
|
|
| 97 |
# masks, flows, _ = model.eval(img, channels=[0,0])
|
| 98 |
# return masks, flows
|
| 99 |
|
| 100 |
+
@spaces.GPU(duration=10)
|
| 101 |
def cellpose_segment(img_input):
|
| 102 |
img = image_resize(img_input)
|
| 103 |
#masks, flows = run_model_gpu(model, img)
|