datasetsANDmodels commited on
Commit
7a75971
·
verified ·
1 Parent(s): 0051f6d

Update usage.py

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