Ahsen Khaliq commited on
Commit
374737d
1 Parent(s): 0e4e874

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,14 +11,14 @@ def inference(image,audio):
11
  face_input_path = image
12
  audio_input_path = audio
13
  module.wav2lip_transfer(face=face_input_path, audio=audio_input_path, output_dir='./transfer_result/', use_gpu=False)
14
- return './transfer_result/'+Path(image.name).stem+".mp4"
15
 
16
  title = "Wav2lip"
17
 
18
  description = "Gradio demo for Wav2lip. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
19
  article = "<p style='text-align: center'><a href='https://github.com/jantic/DeOldify' target='_blank'>Github Repo</a></p>"
20
 
21
- examples=[['lunch.jpeg']]
22
 
23
  iface = gr.Interface(inference, [gr.inputs.Image(type="filepath"),gr.inputs.Audio(type="filepath")],
24
  outputs=gr.outputs.Video(label="Output Video"),examples=examples,enable_queue=True,title=title,article=article,description=description)
 
11
  face_input_path = image
12
  audio_input_path = audio
13
  module.wav2lip_transfer(face=face_input_path, audio=audio_input_path, output_dir='./transfer_result/', use_gpu=False)
14
+ return './transfer_result/'+Path(image).stem+".mp4"
15
 
16
  title = "Wav2lip"
17
 
18
  description = "Gradio demo for Wav2lip. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
19
  article = "<p style='text-align: center'><a href='https://github.com/jantic/DeOldify' target='_blank'>Github Repo</a></p>"
20
 
21
+ examples=[['monatest.jpeg','as_v1_500_1.wav']]
22
 
23
  iface = gr.Interface(inference, [gr.inputs.Image(type="filepath"),gr.inputs.Audio(type="filepath")],
24
  outputs=gr.outputs.Video(label="Output Video"),examples=examples,enable_queue=True,title=title,article=article,description=description)