datasetsANDmodels commited on
Commit
25951a3
·
verified ·
1 Parent(s): c94374b

Update usage.py

Browse files
Files changed (1) hide show
  1. usage.py +0 -5
usage.py CHANGED
@@ -1,11 +1,6 @@
1
 
2
  from transformers import pipeline
3
- #pipe= pipeline("translation", model="th2en")
4
- #pipe= pipeline("translation", model="ur2en")
5
  pipe= pipeline("translation", model="hi2en")
6
- text ="ผมโทรมาจากสำนักงานสรรพากรครับ" #Thai
7
- #text="میں ٹیکس آفس سے کال کر رہا ہوں۔" #Urdu
8
- #text="I am calling from tax office"
9
  text= "मैं कर कार्यालय से फोन कर रहा हूँ"
10
  result =pipe(text)
11
  print( result[0]["translation_text"])
 
1
 
2
  from transformers import pipeline
 
 
3
  pipe= pipeline("translation", model="hi2en")
 
 
 
4
  text= "मैं कर कार्यालय से फोन कर रहा हूँ"
5
  result =pipe(text)
6
  print( result[0]["translation_text"])