goldpulpy commited on
Commit
ec33f82
1 Parent(s): 2cde5a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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')])