jens commited on
Commit
9503ae0
·
1 Parent(s): 2a8280a
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -87,12 +87,12 @@ with block:
87
  [input_image, prompt_image, point_coords, point_labels, point_label_radio],
88
  [prompt_image, prompt_lbl_image, point_coords, point_labels], queue=False)
89
 
90
- def on_everything_image_select(input_image ,everything_image, masks, text, evt: gr.SelectData):
91
  i = evt.index
92
  mask = everything_image[1][i]
93
  masks.append((mask, text))
94
  anno = (input_image, masks)
95
- return {masks: masks, selected_masks_image: anno}
96
 
97
  everything_image.select(on_everything_image_select,
98
  [input_image, everything_image, masks, text],
 
87
  [input_image, prompt_image, point_coords, point_labels, point_label_radio],
88
  [prompt_image, prompt_lbl_image, point_coords, point_labels], queue=False)
89
 
90
+ def on_everything_image_select(input_image, everything_image, masks, text, evt: gr.SelectData):
91
  i = evt.index
92
  mask = everything_image[1][i]
93
  masks.append((mask, text))
94
  anno = (input_image, masks)
95
+ return [masks, anno]
96
 
97
  everything_image.select(on_everything_image_select,
98
  [input_image, everything_image, masks, text],