goldpulpy commited on
Commit
6f6c1af
1 Parent(s): dd332ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- res = requests.post("https://hdde.ru/api/upload.php",files={"filename":open(f"{output_file}","rb")})
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')])