Spaces:
Sleeping
Sleeping
roychao19477
commited on
Commit
·
26357fe
1
Parent(s):
be494d7
Fix
Browse files
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 |
-
|
221 |
flipped_output_path = os.path.join(tmpdir, "face_only_video_flipped.mp4")
|
222 |
-
flipped_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
|