| from transformers import pipeline | |
| #pipe= pipeline("translation", model="th2en") | |
| #pipe= pipeline("translation", model="ur2en") | |
| pipe= pipeline("translation", model="en2ur") | |
| text ="ผมโทรมาจากสำนักงานสรรพากรครับ" #Thai | |
| text="میں ٹیکس آفس سے کال کر رہا ہوں۔" #Urdu | |
| text="I am calling from tax office" | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) | |