datasetsANDmodels commited on
Commit
ea022ae
·
verified ·
1 Parent(s): 7b93b17

Update usage.py

Browse files
Files changed (1) hide show
  1. usage.py +0 -4
usage.py CHANGED
@@ -1,10 +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="en2ur")
6
- text ="ผมโทรมาจากสำนักงานสรรพากรครับ" #Thai
7
  text="میں ٹیکس آفس سے کال کر رہا ہوں۔" #Urdu
8
- #text="I am calling from tax office"
9
  result =pipe(text)
10
  print( result[0]["translation_text"])
 
1
 
2
  from transformers import pipeline
 
3
  pipe= pipeline("translation", model="ur2en")
 
 
4
  text="میں ٹیکس آفس سے کال کر رہا ہوں۔" #Urdu
 
5
  result =pipe(text)
6
  print( result[0]["translation_text"])