Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def predict(video, audio):
|
|
13 |
command = ["python", "inference.py", "--face", video,
|
14 |
"--audio", audio, "--outfile", output_file]
|
15 |
subprocess.run(command, check=True)
|
16 |
-
return output_file
|
17 |
|
18 |
|
19 |
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')])
|
|
|
13 |
command = ["python", "inference.py", "--face", video,
|
14 |
"--audio", audio, "--outfile", output_file]
|
15 |
subprocess.run(command, check=True)
|
16 |
+
return gradio.File(output_file)
|
17 |
|
18 |
|
19 |
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')])
|