fffiloni commited on
Commit
11d0cdc
·
verified ·
1 Parent(s): 8e27a40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -392,15 +392,16 @@ def propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_
392
  codec='libx264'
393
  )
394
 
 
 
395
  mask_clip = ImageSequenceClip(masks_frames, fps=fps)
396
- # Write the result to a file
 
397
  mask_final_vid_output_path = "mask_output_video.mp4"
398
 
399
- # Write the result to a file
400
- mask_clip.write_videofile(
401
- mask_final_vid_output_path,
402
- codec='libx264'
403
- )
404
 
405
  return gr.update(value=None), gr.update(value=final_vid_output_path), working_frame, available_frames_to_check, gr.update(visible=True), mask_final_vid_output_path
406
 
 
392
  codec='libx264'
393
  )
394
 
395
+
396
+ # Create the video clip
397
  mask_clip = ImageSequenceClip(masks_frames, fps=fps)
398
+
399
+ # Define the output file path
400
  mask_final_vid_output_path = "mask_output_video.mp4"
401
 
402
+ # Write the video to a file
403
+ mask_clip.write_videofile(mask_final_vid_output_path, codec='libx264')
404
+
 
 
405
 
406
  return gr.update(value=None), gr.update(value=final_vid_output_path), working_frame, available_frames_to_check, gr.update(visible=True), mask_final_vid_output_path
407