Spaces:
Sleeping
Sleeping
Commit ·
9a9dfc5
1
Parent(s): 2430ee9
Update app.py
Browse files
app.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
|
| 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
|