capstonedubtrack commited on
Commit
1d6ac10
1 Parent(s): 719767b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -4,10 +4,10 @@ import gradio as gr
4
 
5
  os.system('git clone https://github.com/Rudrabha/Wav2Lip.git')
6
  os.system('curl -o ./Wav2Lip/face_detection/detection/sfd/s3fd.pth https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth')
7
- os.system('pip install moviepy')
8
- os.system('pip install speechRecognition')
9
- os.system('pip install gtts')
10
- os.system('pip install googletrans==3.1.0a0')
11
 
12
  title = "Automatic translation and dubbing for Indic Languages"
13
  description = "A demo application to dub and translate videos spoken in Tamil, Hindi, Bengali and Telugu"
@@ -17,7 +17,7 @@ def inference(language,speed,voice,video ):
17
  import moviepy.editor as mp
18
  clip = mp.VideoFileClip(video)
19
  clip.audio.write_audiofile(r"audio.wav")
20
- os.system('pip install pydub')
21
  os.system('pip3 install transformers==4.11.3 soundfile sentencepiece torchaudio librosa')
22
  speechlist = []
23
  from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
 
4
 
5
  os.system('git clone https://github.com/Rudrabha/Wav2Lip.git')
6
  os.system('curl -o ./Wav2Lip/face_detection/detection/sfd/s3fd.pth https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth')
7
+ os.system('pip3 install moviepy')
8
+ os.system('pip3 install speechRecognition')
9
+ os.system('pip3 install gtts')
10
+ os.system('pip3 install googletrans==3.1.0a0')
11
 
12
  title = "Automatic translation and dubbing for Indic Languages"
13
  description = "A demo application to dub and translate videos spoken in Tamil, Hindi, Bengali and Telugu"
 
17
  import moviepy.editor as mp
18
  clip = mp.VideoFileClip(video)
19
  clip.audio.write_audiofile(r"audio.wav")
20
+ os.system('pip3 install pydub')
21
  os.system('pip3 install transformers==4.11.3 soundfile sentencepiece torchaudio librosa')
22
  speechlist = []
23
  from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC