vi2en / usage.py
datasetsANDmodels's picture
Create usage.py
5a3ea3f verified
raw
history blame contribute delete
178 Bytes
from transformers import pipeline
pipe= pipeline("translation", model="vi2en")
text="Tôi gọi từ văn phòng thuế"
result =pipe(text)
print( result[0]["translation_text"])