fffiloni commited on
Commit
4b76a05
1 Parent(s): 2556971

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ from sam2.build_sam import build_sam2
10
  from sam2.sam2_image_predictor import SAM2ImagePredictor
11
 
12
  def preprocess_image(image):
13
- return image, gr.State([]), gr.State([])
14
 
15
  def get_point(tracking_points, trackings_input_label, first_frame_path, evt: gr.SelectData):
16
  print(f"You selected {evt.value} at {evt.index} from {evt.target}")
 
10
  from sam2.sam2_image_predictor import SAM2ImagePredictor
11
 
12
  def preprocess_image(image):
13
+ return image, gr.State([]), gr.State([]), image
14
 
15
  def get_point(tracking_points, trackings_input_label, first_frame_path, evt: gr.SelectData):
16
  print(f"You selected {evt.value} at {evt.index} from {evt.target}")