Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
7 |
module = hub.Module(name="wav2lip")
|
|
|
8 |
def inference(image,audio):
|
9 |
-
|
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"
|