akhaliq HF staff commited on
Commit
1622a2c
1 Parent(s): 8c1f78c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -3,12 +3,11 @@ os.system("python -m pip install paddlepaddle-gpu==2.2.1.post112 -f https://www.
3
  os.system("hub install wav2lip==1.0.0")
4
  import gradio as gr
5
  import paddlehub as hub
6
- from pathlib import Path
7
  module = hub.Module(name="wav2lip")
 
8
  def inference(image,audio):
9
- face_input_path = image
10
- audio_input_path = audio
11
- module.wav2lip_transfer(face=face_input_path, audio=audio_input_path, output_dir='.', use_gpu=False)
12
  return "result.mp4"
13
 
14
  title = "Wav2lip"
 
3
  os.system("hub install wav2lip==1.0.0")
4
  import gradio as gr
5
  import paddlehub as hub
6
+
7
  module = hub.Module(name="wav2lip")
8
+
9
  def inference(image,audio):
10
+ module.wav2lip_transfer(face=image, audio=audio, output_dir='.', use_gpu=False)
 
 
11
  return "result.mp4"
12
 
13
  title = "Wav2lip"