NCJ commited on
Commit
1786865
1 Parent(s): 2bed606

add sam queue

Browse files
Files changed (1) hide show
  1. gradio_demo.py +2 -0
gradio_demo.py CHANGED
@@ -375,6 +375,7 @@ with gr.Blocks(title="MeshFormer Demo", css="style.css", theme=custom_theme) as
375
  calc_feat,
376
  inputs=[checkbox_manual_seg, predictor, input_image],
377
  outputs=[seg_in],
 
378
  ).success(
379
  fn=create_tmp_dir, outputs=[tmp_dir_img], queue=False
380
  )
@@ -383,6 +384,7 @@ with gr.Blocks(title="MeshFormer Demo", css="style.css", theme=custom_theme) as
383
  manual_seg,
384
  [predictor, seg_in, selected_points, fg_bg_radio, tmp_dir_img, seg_mask_opt],
385
  [seg_out, processed_image],
 
386
  )
387
 
388
  input_image.change(disable_button, outputs=img_run_btn, queue=False).success(
 
375
  calc_feat,
376
  inputs=[checkbox_manual_seg, predictor, input_image],
377
  outputs=[seg_in],
378
+ queue=True,
379
  ).success(
380
  fn=create_tmp_dir, outputs=[tmp_dir_img], queue=False
381
  )
 
384
  manual_seg,
385
  [predictor, seg_in, selected_points, fg_bg_radio, tmp_dir_img, seg_mask_opt],
386
  [seg_out, processed_image],
387
+ queue=True,
388
  )
389
 
390
  input_image.change(disable_button, outputs=img_run_btn, queue=False).success(