artificialguybr commited on
Commit
5eb8f05
β€’
1 Parent(s): af855d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def process_video(video, high_quality, target_language):
86
  # Debugging Step 2: Remove quotes around the video path
87
  video_path_fix = video_path
88
 
89
- cmd = f"python Wav2Lip/inference.py --checkpoint_path '/Wav2Lip/checkpoints/wav2lip_gan.pth' --face {shlex.quote(video_path_fix)} --audio 'output_synth.wav' --pads {pad_top} {pad_bottom} {pad_left} {pad_right} --resize_factor {rescaleFactor} --nosmooth --outfile 'output_video.mp4'"
90
  subprocess.run(cmd, shell=True)
91
  # Debugging Step 3: Check if output video exists
92
  if not os.path.exists("output_video.mp4"):
 
86
  # Debugging Step 2: Remove quotes around the video path
87
  video_path_fix = video_path
88
 
89
+ cmd = f"python Wav2Lip/inference.py --checkpoint_path 'Wav2Lip/checkpoints/wav2lip_gan.pth' --face {shlex.quote(video_path_fix)} --audio 'output_synth.wav' --pads {pad_top} {pad_bottom} {pad_left} {pad_right} --resize_factor {rescaleFactor} --nosmooth --outfile 'output_video.mp4'"
90
  subprocess.run(cmd, shell=True)
91
  # Debugging Step 3: Check if output video exists
92
  if not os.path.exists("output_video.mp4"):