Update app.py
Browse files
app.py
CHANGED
|
@@ -147,7 +147,7 @@ def run_model_gpu1000(img):
|
|
| 147 |
return masks, flows
|
| 148 |
|
| 149 |
#@spaces.GPU(duration=10)
|
| 150 |
-
def cellpose_segment(img_pil, resize =
|
| 151 |
img_input = imread(img_pil)
|
| 152 |
#img_input = np.array(img_pil)
|
| 153 |
img = image_resize(img_input, resize = resize)
|
|
@@ -233,7 +233,7 @@ with gr.Blocks(title = "Hello",
|
|
| 233 |
input_image = gr.Image(label = "Input image", type = "filepath")
|
| 234 |
|
| 235 |
with gr.Row():
|
| 236 |
-
resize = gr.Number(label = 'max
|
| 237 |
send_btn = gr.Button("Run Cellpose-SAM")
|
| 238 |
|
| 239 |
with gr.Row():
|
|
|
|
| 147 |
return masks, flows
|
| 148 |
|
| 149 |
#@spaces.GPU(duration=10)
|
| 150 |
+
def cellpose_segment(img_pil, resize = 400):
|
| 151 |
img_input = imread(img_pil)
|
| 152 |
#img_input = np.array(img_pil)
|
| 153 |
img = image_resize(img_input, resize = resize)
|
|
|
|
| 233 |
input_image = gr.Image(label = "Input image", type = "filepath")
|
| 234 |
|
| 235 |
with gr.Row():
|
| 236 |
+
resize = gr.Number(label = 'max resize', value = 400)
|
| 237 |
send_btn = gr.Button("Run Cellpose-SAM")
|
| 238 |
|
| 239 |
with gr.Row():
|