| from transformers import pipeline | |
| pipe= pipeline("translation", model="ar2en") | |
| text="أنا أتصل من مكتب الضرائب" | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) |
| from transformers import pipeline | |
| pipe= pipeline("translation", model="ar2en") | |
| text="أنا أتصل من مكتب الضرائب" | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) |