datasetsANDmodels commited on
Commit
797acbc
·
verified ·
1 Parent(s): f15a763

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="en2id")
3
+ text="I am calling from the tax office"
4
+ result =pipe(text)
5
+ print( result[0]["translation_text"])
6
+