th2en / usage.py
datasetsANDmodels's picture
Update usage.py
740ec8e verified
from transformers import pipeline
pipe= pipeline("translation", model="th2en")
text ="ผมโทรมาจากสำนักงานสรรพากรครับ" #Thai
result =pipe(text)
print( result[0]["translation_text"])