Spaces:
Running
Running
salomonsky
commited on
Commit
•
f0f432d
1
Parent(s):
a786702
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def generate_output(name, ingredients):
|
|
24 |
return None, f"No se pudo generar el audio: {str(e)}"
|
25 |
|
26 |
video_path = "video.mp4"
|
27 |
-
command = f"python3 inference.py --checkpoint_path checkpoints/wav2lip_gan.pth --face face.
|
28 |
process = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
29 |
if process.returncode != 0:
|
30 |
error_message = process.stderr
|
|
|
24 |
return None, f"No se pudo generar el audio: {str(e)}"
|
25 |
|
26 |
video_path = "video.mp4"
|
27 |
+
command = f"python3 inference.py --checkpoint_path checkpoints/wav2lip_gan.pth --face face.png --audio {audio_path} --outfile {video_path} --nosmooth"
|
28 |
process = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
29 |
if process.returncode != 0:
|
30 |
error_message = process.stderr
|