File size: 187 Bytes
97badf6
 
 
 
 
1
2
3
4
5
from transformers import pipeline
pipe= pipeline("translation", model="ar2en")
text="أنا أتصل من مكتب الضرائب"
result =pipe(text)
print( result[0]["translation_text"])