hysts HF staff commited on
Commit
e03d871
1 Parent(s): 25f96d7
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -813,13 +813,8 @@ if __name__ == "__main__":
813
  outputs=[first_frame_path, last_frame_path, tracking_points],
814
  )
815
 
816
- input_image.select(
817
- fn=add_tracking_points,
818
- inputs=[tracking_points, first_frame_path, last_frame_path],
819
- outputs=[tracking_points, input_image, input_image_end],
820
- )
821
-
822
- input_image_end.select(
823
  fn=add_tracking_points,
824
  inputs=[tracking_points, first_frame_path, last_frame_path],
825
  outputs=[tracking_points, input_image, input_image_end],
 
813
  outputs=[first_frame_path, last_frame_path, tracking_points],
814
  )
815
 
816
+ gr.on(
817
+ triggers=[input_image.select, input_image_end.select],
 
 
 
 
 
818
  fn=add_tracking_points,
819
  inputs=[tracking_points, first_frame_path, last_frame_path],
820
  outputs=[tracking_points, input_image, input_image_end],