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