roychao19477 commited on
Commit
26357fe
·
1 Parent(s): be494d7
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -217,9 +217,9 @@ def extract_faces(video_file):
217
 
218
  enhanced_audio_path = run_avse_inference(output_path, audio_path)
219
 
220
- from moviepy.video.fx import flip_vertical
221
  flipped_output_path = os.path.join(tmpdir, "face_only_video_flipped.mp4")
222
- flipped_clip = flip_vertical(clip)
223
  flipped_clip.write_videofile(flipped_output_path, codec="libx264", audio=False, fps=25)
224
 
225
  return flipped_output_path, enhanced_audio_path
 
217
 
218
  enhanced_audio_path = run_avse_inference(output_path, audio_path)
219
 
220
+ import moviepy.video.fx.MirrorY # should import fine
221
  flipped_output_path = os.path.join(tmpdir, "face_only_video_flipped.mp4")
222
+ flipped_clip = clip.fx(vfx.mirror_y)
223
  flipped_clip.write_videofile(flipped_output_path, codec="libx264", audio=False, fps=25)
224
 
225
  return flipped_output_path, enhanced_audio_path