Spaces:
Running
on
Zero
Running
on
Zero
roychao19477
commited on
Commit
·
963479a
1
Parent(s):
6e1f4ea
Add limitations
Browse files
app.py
CHANGED
@@ -194,7 +194,8 @@ def extract_faces(video_file):
|
|
194 |
clip = ImageSequenceClip(
|
195 |
[cv2.cvtColor(cv2.resize(f, (224, 224)), cv2.COLOR_BGR2RGB) for f in frames],
|
196 |
fps=fps
|
197 |
-
)
|
|
|
198 |
clip.write_videofile(output_path, codec="libx264", audio=False, fps=25)
|
199 |
|
200 |
# Save audio from original, resampled to 16kHz
|
|
|
194 |
clip = ImageSequenceClip(
|
195 |
[cv2.cvtColor(cv2.resize(f, (224, 224)), cv2.COLOR_BGR2RGB) for f in frames],
|
196 |
fps=fps
|
197 |
+
)
|
198 |
+
clip = vfx.MirrorY.apply(clip)
|
199 |
clip.write_videofile(output_path, codec="libx264", audio=False, fps=25)
|
200 |
|
201 |
# Save audio from original, resampled to 16kHz
|