Spaces:
Sleeping
Sleeping
salomonsky
commited on
Commit
路
11f9a7a
1
Parent(s):
fa706f3
Update app1.py
Browse files
app1.py
CHANGED
@@ -33,7 +33,7 @@ def generate_output(name, birth_date):
|
|
33 |
return None, f"No se pudo generar el audio: {str(e)}"
|
34 |
|
35 |
video_path = "video.mp4"
|
36 |
-
command = f"python3 inference.py --checkpoint_path checkpoints/wav2lip_gan.pth --face face.
|
37 |
process = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
38 |
if process.returncode != 0:
|
39 |
error_message = process.stderr
|
|
|
33 |
return None, f"No se pudo generar el audio: {str(e)}"
|
34 |
|
35 |
video_path = "video.mp4"
|
36 |
+
command = f"python3 inference.py --checkpoint_path checkpoints/wav2lip_gan.pth --face face.jpg --audio {audio_path} --outfile {video_path} --nosmooth"
|
37 |
process = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
38 |
if process.returncode != 0:
|
39 |
error_message = process.stderr
|