Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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}")
|