roychao19477 commited on
Commit
aa84fde
·
1 Parent(s): 05eb1f3

Add limitations

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -214,16 +214,18 @@ def extract_faces(video_file):
214
  enhanced_audio_path = run_avse_inference(output_path, audio_path)
215
 
216
 
217
- clip_to_mirror = VideoFileClip(existing_video_path)
 
218
  mirrored_clip = clip_to_mirror.with_effects([MirrorY().copy()])
219
  mirrored_clip.write_videofile(
220
- output_path,
221
  codec='libx264', # Common H.264 codec
222
  audio_codec='aac' # Common audio codec if your clip has audio
223
  # You can also specify fps if needed: fps=mirrored_clip.fps
224
  )
225
 
226
- return output_path, enhanced_audio_path
 
227
  #return output_path, audio_path
228
 
229
  iface = gr.Interface(
 
214
  enhanced_audio_path = run_avse_inference(output_path, audio_path)
215
 
216
 
217
+ flip_output_path = os.path.join(tmpdir, "flip_face_only_video.mp4")
218
+ clip_to_mirror = VideoFileClip(output_path)
219
  mirrored_clip = clip_to_mirror.with_effects([MirrorY().copy()])
220
  mirrored_clip.write_videofile(
221
+ flip_output_path,
222
  codec='libx264', # Common H.264 codec
223
  audio_codec='aac' # Common audio codec if your clip has audio
224
  # You can also specify fps if needed: fps=mirrored_clip.fps
225
  )
226
 
227
+ return flip_output_path, enhanced_audio_path
228
+ #return output_path, enhanced_audio_path
229
  #return output_path, audio_path
230
 
231
  iface = gr.Interface(