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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,8 +8,6 @@ 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
- os.system('pip install pydub')
12
- os.system('pip3 install transformers==4.11.3 soundfile sentencepiece torchaudio librosa')
13
 
14
  title = "Automatic translation and dubbing for Indic Languages"
15
  description = "A demo application to dub and translate videos spoken in Tamil, Hindi, Bengali and Telugu"
@@ -19,6 +17,8 @@ def inference(language,speed,voice,video ):
19
  import moviepy.editor as mp
20
  clip = mp.VideoFileClip(video)
21
  clip.audio.write_audiofile(r"audio.wav")
 
 
22
  speechlist = []
23
  from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
24
  import torch
 
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
  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
24
  import torch