datasetsANDmodels commited on
Commit
c8f4681
·
verified ·
1 Parent(s): bf747b2

Create usage.py

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