Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import subprocess
|
|
| 4 |
# Function to run Wav2Lip model
|
| 5 |
def run_wav2lip(video, audio):
|
| 6 |
# Define the command to run the Wav2Lip model
|
| 7 |
-
command = f"python inference.py --face '{video}' --audio '{audio}' --outfile output_result.mp4"
|
| 8 |
|
| 9 |
# Execute the command
|
| 10 |
subprocess.run(command, shell=True, check=True)
|
|
|
|
| 4 |
# Function to run Wav2Lip model
|
| 5 |
def run_wav2lip(video, audio):
|
| 6 |
# Define the command to run the Wav2Lip model
|
| 7 |
+
command = f"python inference.py --checkpoint_path checkpoints/wav2lip_gan.pth --face '{video}' --audio '{audio}' --outfile output_result.mp4"
|
| 8 |
|
| 9 |
# Execute the command
|
| 10 |
subprocess.run(command, shell=True, check=True)
|