mouseland commited on
Commit
21fd97a
·
verified ·
1 Parent(s): 1fe72e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 900):
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 size', value = 400)
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():