sw2th / usage.py
datasetsANDmodels's picture
Update usage.py
e0c1303 verified
raw
history blame
277 Bytes
from transformers import pipeline
pipe= pipeline("translation", model="sw2th")
text="Jag ringer från skattekontoret."#SWIDISH
#text="ผมโทรมาจากสํานักงานสรรพากร"#THAI
result =pipe(text)
print( result[0]["translation_text"])