Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import gradio as gr
|
|
4 |
|
5 |
device = "cuda"
|
6 |
os.system('git clone https://github.com/Rudrabha/Wav2Lip.git')
|
|
|
7 |
os.system('curl -o ./Wav2Lip/face_detection/detection/sfd/s3fd.pth https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth')
|
8 |
os.system('pip3 install moviepy')
|
9 |
os.system('pip3 uninstall numpy')
|
@@ -18,7 +19,7 @@ title = "Automatic translation and dubbing for Indic Languages"
|
|
18 |
description = "A demo application to dub and translate videos spoken in Tamil, Hindi, Bengali and Telugu"
|
19 |
article = "Official Repo: https://github.com/Rudrabha/Wav2Lip"
|
20 |
|
21 |
-
def inference(language,speed,voice,video
|
22 |
import moviepy.editor as mp
|
23 |
clip = mp.VideoFileClip(video)
|
24 |
clip.audio.write_audiofile(r"audio.wav")
|
|
|
4 |
|
5 |
device = "cuda"
|
6 |
os.system('git clone https://github.com/Rudrabha/Wav2Lip.git')
|
7 |
+
os.system('pip3 install --upgrade pip3')
|
8 |
os.system('curl -o ./Wav2Lip/face_detection/detection/sfd/s3fd.pth https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth')
|
9 |
os.system('pip3 install moviepy')
|
10 |
os.system('pip3 uninstall numpy')
|
|
|
19 |
description = "A demo application to dub and translate videos spoken in Tamil, Hindi, Bengali and Telugu"
|
20 |
article = "Official Repo: https://github.com/Rudrabha/Wav2Lip"
|
21 |
|
22 |
+
def inference(language,speed,voice,video):
|
23 |
import moviepy.editor as mp
|
24 |
clip = mp.VideoFileClip(video)
|
25 |
clip.audio.write_audiofile(r"audio.wav")
|