jens commited on
Commit
f5cfe4e
·
1 Parent(s): 9e6e225
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,7 +80,7 @@ with block:
80
  input_image.upload(on_input_image_upload, [input_image], [input_image, point_coords, point_labels], queue=False)
81
 
82
  # event - set coords
83
- def on_prompt_image_select(input_image, prompt, point_coords, point_labels, point_label_radio, evt: gr.SelectData):
84
  x, y = evt.index
85
  color = red if point_label_radio == 0 else blue
86
  if prompt is None:
@@ -97,7 +97,7 @@ with block:
97
  point_labels ]
98
 
99
  prompt_image.select(on_prompt_image_select,
100
- [input_image, point_coords, point_labels, point_label_radio],
101
  [prompt_image, prompt_lbl_image, point_coords, point_labels], queue=False)
102
 
103
  def on_click_sam_encode_btn(inputs):
 
80
  input_image.upload(on_input_image_upload, [input_image], [input_image, point_coords, point_labels], queue=False)
81
 
82
  # event - set coords
83
+ def on_prompt_image_select(input_image, prompt_image, point_coords, point_labels, point_label_radio, evt: gr.SelectData):
84
  x, y = evt.index
85
  color = red if point_label_radio == 0 else blue
86
  if prompt is None:
 
97
  point_labels ]
98
 
99
  prompt_image.select(on_prompt_image_select,
100
+ [input_image, prompt_image, point_coords, point_labels, point_label_radio],
101
  [prompt_image, prompt_lbl_image, point_coords, point_labels], queue=False)
102
 
103
  def on_click_sam_encode_btn(inputs):