s194649 commited on
Commit
3756abb
·
1 Parent(s): 8728327
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,7 +109,7 @@ with block:
109
 
110
  prompt_image.select(on_prompt_image_select,
111
  [input_image, prompt_image, point_coords, point_labels, point_label_radio, text, pred_masks, embedding],
112
- [prompt_image, lbl_image, point_coords, point_labels, pred_masks], queue=False)
113
 
114
 
115
  def on_everything_image_select(input_image, pred_masks, masks, text, evt: gr.SelectData):
@@ -175,7 +175,7 @@ with block:
175
  print(image)
176
  print(sam_masks)
177
  return [(image, sam_masks), sam_masks]
178
- sam_sgmt_everything_btn.click(on_sam_sgmt_everything_btn_click, components, [lbl_image, pred_masks], queue=False)
179
 
180
 
181
  if __name__ == '__main__':
 
109
 
110
  prompt_image.select(on_prompt_image_select,
111
  [input_image, prompt_image, point_coords, point_labels, point_label_radio, text, pred_masks, embedding],
112
+ [prompt_image, lbl_image, point_coords, point_labels, pred_masks], queue=True)
113
 
114
 
115
  def on_everything_image_select(input_image, pred_masks, masks, text, evt: gr.SelectData):
 
175
  print(image)
176
  print(sam_masks)
177
  return [(image, sam_masks), sam_masks]
178
+ sam_sgmt_everything_btn.click(on_sam_sgmt_everything_btn_click, components, [lbl_image, pred_masks], queue=True)
179
 
180
 
181
  if __name__ == '__main__':