Harveenchadha's picture
Update app.py
83470ae
raw
history blame
No virus
500 Bytes
import os
os.system('wget -q https://storage.googleapis.com/vakyaansh-open-models/translation_models/en-indic.zip')
os.system('unzip /home/user/app/en-indic.zip')
os.system('pip uninstall -y numpy')
os.system('pip install numpy==1.20 --user')
from fairseq import checkpoint_utils, distributed_utils, options, tasks, utils
from inference.engine import Model
indic2en_model = Model(expdir='en-indic')
ta_paragraph = "hello how are you"
indic2en_model.translate_paragraph(ta_paragraph, 'en', 'hi')