Update app.py
Browse files
app.py
CHANGED
|
@@ -48,10 +48,10 @@ def clear_points(image):
|
|
| 48 |
# we clean all
|
| 49 |
return [
|
| 50 |
image, # first_frame_path
|
| 51 |
-
[], # tracking_points
|
| 52 |
-
[], # trackings_input_label
|
| 53 |
image, # points_map
|
| 54 |
-
|
| 55 |
]
|
| 56 |
|
| 57 |
def preprocess_video_in(video_path):
|
|
|
|
| 48 |
# we clean all
|
| 49 |
return [
|
| 50 |
image, # first_frame_path
|
| 51 |
+
gr.State([]), # tracking_points
|
| 52 |
+
gr.State([]), # trackings_input_label
|
| 53 |
image, # points_map
|
| 54 |
+
gr.State() # stored_inference_state
|
| 55 |
]
|
| 56 |
|
| 57 |
def preprocess_video_in(video_path):
|