Harveenchadha commited on
Commit
76dfa60
·
1 Parent(s): 1508faf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,11 +5,11 @@ os.system('wget -q https://storage.googleapis.com/vakyaansh-open-models/translat
5
  os.system('unzip /home/user/app/indic-en.zip')
6
  os.system('wget -q https://storage.googleapis.com/vakyaansh-open-models/translation_models/en-indic.zip')
7
  os.system('unzip /home/user/app/en-indic.zip')
8
- os.system('wget -q https://storage.googleapis.com/vakyaansh-open-models/translation_models/m2m.zip')
9
  os.system('unzip /home/user/app/m2m.zip')
10
  os.system('rm /home/user/app/indic-en.zip')
11
  os.system('rm /home/user/app/en-indic.zip')
12
- os.system('rm /home/user/app/m2m.zip')
13
 
14
  os.system('pip uninstall -y numpy')
15
  os.system('pip install numpy')
@@ -21,7 +21,7 @@ import gradio as grd
21
  from inference.engine import Model
22
  indic2en_model = Model(expdir='indic-en')
23
  en2indic_model = Model(expdir='en-indic')
24
- indic2indic_model = Model(expdir='m2m')
25
 
26
  INDIC = {"Assamese": "as", "Bengali": "bn", "Gujarati": "gu", "Hindi": "hi","Kannada": "kn","Malayalam": "ml", "Marathi": "mr", "Odia": "or","Punjabi": "pa","Tamil": "ta", "Telugu" : "te", "English": "en"}
27
 
 
5
  os.system('unzip /home/user/app/indic-en.zip')
6
  os.system('wget -q https://storage.googleapis.com/vakyaansh-open-models/translation_models/en-indic.zip')
7
  os.system('unzip /home/user/app/en-indic.zip')
8
+ os.system('wget -q https://storage.googleapis.com/vakyaansh-open-models/translation_models/m2m_modified.zip')
9
  os.system('unzip /home/user/app/m2m.zip')
10
  os.system('rm /home/user/app/indic-en.zip')
11
  os.system('rm /home/user/app/en-indic.zip')
12
+ os.system('rm /home/user/app/m2m_modified.zip')
13
 
14
  os.system('pip uninstall -y numpy')
15
  os.system('pip install numpy')
 
21
  from inference.engine import Model
22
  indic2en_model = Model(expdir='indic-en')
23
  en2indic_model = Model(expdir='en-indic')
24
+ indic2indic_model = Model(expdir='m2m_modified')
25
 
26
  INDIC = {"Assamese": "as", "Bengali": "bn", "Gujarati": "gu", "Hindi": "hi","Kannada": "kn","Malayalam": "ml", "Marathi": "mr", "Odia": "or","Punjabi": "pa","Tamil": "ta", "Telugu" : "te", "English": "en"}
27