en2ar / usage.py
datasetsANDmodels's picture
Create usage.py
f3cac3f verified
from transformers import pipeline
pipe= pipeline("translation", model="en2ar")
text="I am calling from the tax office"
result =pipe(text)
print( result[0]["translation_text"])