datasetsANDmodels commited on
Commit
f3cac3f
·
verified ·
1 Parent(s): 7d79658

Create usage.py

Browse files
Files changed (1) hide show
  1. usage.py +5 -0
usage.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+ pipe= pipeline("translation", model="en2ar")
3
+ text="I am calling from the tax office"
4
+ result =pipe(text)
5
+ print( result[0]["translation_text"])