cdactvm commited on
Commit
4701172
·
verified ·
1 Parent(s): 07c24e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import warnings
2
  warnings.filterwarnings("ignore")
3
-
 
4
  import gradio as gr
5
  from transformers import pipeline
6
  from indictrans import Transliterator
@@ -10,8 +11,8 @@ import torchaudio
10
 
11
 
12
  # Initialize the speech recognition pipeline and transliterator
13
- os.system('git clone https://github.com/irshadbhat/indic-trans.git')
14
- os.system('pip install ./indic-trans/.')
15
  pipe = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-odia_v1")
16
  trn = Transliterator(source='ori', target='eng', build_lookup=True)
17
 
 
1
  import warnings
2
  warnings.filterwarnings("ignore")
3
+ os.system('git clone https://github.com/irshadbhat/indic-trans.git')
4
+ os.system('pip install ./indic-trans/.')
5
  import gradio as gr
6
  from transformers import pipeline
7
  from indictrans import Transliterator
 
11
 
12
 
13
  # Initialize the speech recognition pipeline and transliterator
14
+ # os.system('git clone https://github.com/irshadbhat/indic-trans.git')
15
+ # os.system('pip install ./indic-trans/.')
16
  pipe = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-odia_v1")
17
  trn = Transliterator(source='ori', target='eng', build_lookup=True)
18