File size: 681 Bytes
644859b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#run this file
!pip install gradio
!pip install python-dotenv
!pip install ai4bharat-transliteration
!pip install mahaNLP
!pip install inference
!git clone https://github.com/AI4Bharat/IndicTrans2
!cd IndicTrans2
!source install.sh
!wget https://indictrans2-public.objectstore.e2enetworks.net/it2_distilled_ckpts/indic-en.zip
!mkdir indic-en
!unzip indic-en.zip -d ./indic-en
!git clone https://github.com/google/sentencepiece.git
!cd sentencepiece
!mkdir build
!cd build
!cmake ..
!make -j $(nproc)
!sudo make install
!sudo ldconfig -v
!wget https://indictrans2-public.objectstore.e2enetworks.net/it2_distilled_ckpts/en-indic.zip
!mkdir en-indic
!unzip en-indic.zip -d ./en-indic