| from transformers import pipeline | |
| pipe= pipeline("translation", model="ur2en") | |
| text="میں ٹیکس آفس سے کال کر رہا ہوں۔" #Urdu | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) | |
| from transformers import pipeline | |
| pipe= pipeline("translation", model="ur2en") | |
| text="میں ٹیکس آفس سے کال کر رہا ہوں۔" #Urdu | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) | |