File size: 206 Bytes
7b93b17
 
 
 
 
 
1
2
3
4
5
6
7

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