Harveenchadha commited on
Commit
3814228
1 Parent(s): 627d9cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,5 +1,12 @@
1
  import os
2
  os.system('wget -q https://storage.googleapis.com/vakyaansh-open-models/translation_models/en-indic.zip')
 
 
 
 
 
 
 
3
  os.system('pwd')
4
  os.system('unzip /home/user/app/en-indic.zip')
5
  #os.chdir('indicTrans')
 
1
  import os
2
  os.system('wget -q https://storage.googleapis.com/vakyaansh-open-models/translation_models/en-indic.zip')
3
+ os.system('git clone https://github.com/pytorch/fairseq.git')
4
+ os.chdir('fairseq')
5
+ os.system('pip install --editable ./')
6
+ cwd = os.getcwd()
7
+ os.chdir("/".join(cwd.split('/')[:-1]))
8
+
9
+ from fairseq import checkpoint_utils, distributed_utils, options, tasks, utils
10
  os.system('pwd')
11
  os.system('unzip /home/user/app/en-indic.zip')
12
  #os.chdir('indicTrans')