| from transformers import pipeline | |
| #pipe= pipeline("translation", model="th2en") | |
| #pipe= pipeline("translation", model="ur2en") | |
| pipe= pipeline("translation", model="hi2en") | |
| text ="ผมโทรมาจากสำนักงานสรรพากรครับ" #Thai | |
| #text="میں ٹیکس آفس سے کال کر رہا ہوں۔" #Urdu | |
| #text="I am calling from tax office" | |
| text= "मैं कर कार्यालय से फोन कर रहा हूँ" | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) | |