Update usage.py
Browse files
usage.py
CHANGED
|
@@ -1,17 +1,6 @@
|
|
| 1 |
|
| 2 |
from transformers import pipeline
|
| 3 |
-
|
| 4 |
-
#pipe= pipeline("translation", model="ur2en")
|
| 5 |
-
pipe= pipeline("translation", model="de2en")
|
| 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="Jag ringer från skattekontoret."#SWIDISH
|
| 12 |
-
#text="ผมโทรมาจากสํานักงานสรรพากร"#THAI
|
| 13 |
-
#text="저는 세무서에서 전화하고 있습니다."
|
| 14 |
-
text="Ik bel namens de belastingdienst"
|
| 15 |
text="Ich rufe vom Finanzamt an."
|
| 16 |
result =pipe(text)
|
| 17 |
print( result[0]["translation_text"])
|
|
|
|
| 1 |
|
| 2 |
from transformers import pipeline
|
| 3 |
+
pipe= pipeline("translation", model="german2en")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
text="Ich rufe vom Finanzamt an."
|
| 5 |
result =pipe(text)
|
| 6 |
print( result[0]["translation_text"])
|