Spaces:
Sleeping
Sleeping
roychao19477
commited on
Commit
·
82fc4c2
1
Parent(s):
3d4a698
Add limitations
Browse files
app.py
CHANGED
@@ -196,7 +196,8 @@ def extract_faces(video_file):
|
|
196 |
[cv2.cvtColor(cv2.resize(f, (224, 224)), cv2.COLOR_BGR2RGB) for f in frames],
|
197 |
fps=fps
|
198 |
)
|
199 |
-
|
|
|
200 |
|
201 |
# Save audio from original, resampled to 16kHz
|
202 |
audio_path = os.path.join(tmpdir, "audio_16k.wav")
|
|
|
196 |
[cv2.cvtColor(cv2.resize(f, (224, 224)), cv2.COLOR_BGR2RGB) for f in frames],
|
197 |
fps=fps
|
198 |
)
|
199 |
+
from moviepy.video.fx.mirror_y import MirrorY
|
200 |
+
clip = MirrorY().apply(clip)
|
201 |
|
202 |
# Save audio from original, resampled to 16kHz
|
203 |
audio_path = os.path.join(tmpdir, "audio_16k.wav")
|