en2vi / usage.py
datasetsANDmodels's picture
Create usage.py
e5d366c verified
raw
history blame contribute delete
177 Bytes
from transformers import pipeline
pipe= pipeline("translation", model="en2vi")
text="I am calling from the tax office"
result =pipe(text)
print( result[0]["translation_text"])