prismosoft commited on
Commit
2bdeb67
1 Parent(s): 3b126d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -11,11 +11,10 @@ description = "A simple demo for Wav2Lip Official Repo"
11
  article = "Official Repo: https://github.com/Rudrabha/Wav2Lip"
12
 
13
  def inference(face, audio):
14
- os.system("echo $face $audio")
15
  os.system("python inference.py --checkpoint_path ./wav2lip.pth --face {} --audio {}".format(face, audio))
16
 
17
  return "./results/result_voice.mp4"
18
 
19
 
20
- iface = gr.Interface(inference, inputs=[gr.inputs.Video(type="mp4", source="upload", label="Talking Face Video (in mp4 format)", optional=False), gr.inputs.Audio(source="upload", type="filepath", label="Audio", optional=False)], outputs=["video"], title=title, description=description, article=article, examples=[["./examples/w2l_test_f1.mp4", "./examples/w2l_test_a1.wav"]], enable_queue=True)
21
  iface.launch()
11
  article = "Official Repo: https://github.com/Rudrabha/Wav2Lip"
12
 
13
  def inference(face, audio):
 
14
  os.system("python inference.py --checkpoint_path ./wav2lip.pth --face {} --audio {}".format(face, audio))
15
 
16
  return "./results/result_voice.mp4"
17
 
18
 
19
+ iface = gr.Interface(inference, inputs=[gr.inputs.Video(type="mp4", source="upload", label="Talking Face Video (in mp4 format)", optional=False), gr.inputs.Audio(source="upload", type="filepath", label="Audio", optional=False)], outputs=["video"], title=title, description=description, article=article, examples=[["./examples/w2l_test_f1.mp4", "./examples/w2l_test_a1.wav"]], enable_queue=False)
20
  iface.launch()