Spaces:
Runtime error
Runtime error
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') | |
os.system('pip list') | |
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') |