File size: 177 Bytes
e5d366c
 
 
 
 
 
1
2
3
4
5
6
7
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"])