jens commited on
Commit
3300941
·
1 Parent(s): 5a6d6d4
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ with block:
61
  sam.encode(input_image)
62
  print("encoding done")
63
  return input_image, point_coords_empty(), point_labels_empty(), None
64
- input_image.stream(on_input_image_upload, [input_image], [raw_image, point_coords, point_labels], queue=False)
65
 
66
  # event - set coords
67
  def on_input_image_select(input_image, point_coords, point_labels, point_label_radio, evt: gr.SelectData):
 
61
  sam.encode(input_image)
62
  print("encoding done")
63
  return input_image, point_coords_empty(), point_labels_empty(), None
64
+ input_image.change(on_input_image_upload, [input_image], [raw_image, point_coords, point_labels], queue=False)
65
 
66
  # event - set coords
67
  def on_input_image_select(input_image, point_coords, point_labels, point_label_radio, evt: gr.SelectData):