datasetsANDmodels commited on
Commit
d9c8d71
·
verified ·
1 Parent(s): 4717e06

Update usage.py

Browse files
Files changed (1) hide show
  1. usage.py +0 -7
usage.py CHANGED
@@ -1,13 +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="ko2en")
6
- #text ="ผมโทรมาจากสำนักงานสรรพากรครับ" #Thai
7
- #text="میں ٹیکس آفس سے کال کر رہا ہوں۔" #Urdu
8
- text="I am calling from tax office"
9
- #text= "मैं कर कार्यालय से फोन कर रहा हूँ"# HINDI
10
- #text="Jeg ringer fra skattekontoret"
11
  text="저는 세무서에서 전화하고 있습니다."
12
  result =pipe(text)
13
  print( result[0]["translation_text"])
 
1
 
2
  from transformers import pipeline
 
 
3
  pipe= pipeline("translation", model="ko2en")
 
 
 
 
 
4
  text="저는 세무서에서 전화하고 있습니다."
5
  result =pipe(text)
6
  print( result[0]["translation_text"])