Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ def predict(video, audio):
|
|
8 |
audio_path = audio.name
|
9 |
try:
|
10 |
output_file = f"result/{random.randint(10,100000)}.mp4"
|
11 |
-
command = ["python", "inference.py", "--face",
|
12 |
-
"--audio",
|
13 |
subprocess.run(command, check=True)
|
14 |
return output_file
|
15 |
except: pass
|
|
|
8 |
audio_path = audio.name
|
9 |
try:
|
10 |
output_file = f"result/{random.randint(10,100000)}.mp4"
|
11 |
+
command = ["python", "inference.py", "--face", video_path,
|
12 |
+
"--audio", audio_path, "--outfile", output_file]
|
13 |
subprocess.run(command, check=True)
|
14 |
return output_file
|
15 |
except: pass
|