en2it / usage.py
datasetsANDmodels's picture
Create usage.py
c8f4681 verified
from transformers import pipeline
pipe= pipeline("translation", model="en2it")
text ="I am calling from the tax office"
result =pipe(text)
print( result[0]["translation_text"])