Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,7 @@ def predict(video, audio):
|
|
14 |
command = ["python", "inference.py", "--face", video,
|
15 |
"--audio", audio, "--outfile", output_file]
|
16 |
subprocess.run(command, check=True)
|
17 |
-
|
18 |
-
print(res.text)
|
19 |
-
return gradio.File(output_file)
|
20 |
|
21 |
|
22 |
demo = gr.Interface(fn=predict, inputs=[gradio.Video(label='Source image/video'),gradio.Audio(type='filepath', label='Target Audio')], outputs=[gradio.File(type='binary',label='Output file')])
|
|
|
14 |
command = ["python", "inference.py", "--face", video,
|
15 |
"--audio", audio, "--outfile", output_file]
|
16 |
subprocess.run(command, check=True)
|
17 |
+
return output_file
|
|
|
|
|
18 |
|
19 |
|
20 |
demo = gr.Interface(fn=predict, inputs=[gradio.Video(label='Source image/video'),gradio.Audio(type='filepath', label='Target Audio')], outputs=[gradio.File(type='binary',label='Output file')])
|