Rename nllb.py to usage.py
Browse files- nllb.py → usage.py +1 -1
nllb.py → usage.py
RENAMED
|
@@ -12,7 +12,7 @@ text= "I am callig from the tax office"
|
|
| 12 |
#text="Tôi gọi từ văn phòng thuế"#VIE
|
| 13 |
#text="저는 세금청에서 왔습니다."#KOR
|
| 14 |
|
| 15 |
-
translator = pipeline(task="translation", model="nllb",src_lang=sr,tgt_lang=tr)
|
| 16 |
translation = translator(text)[0]['translation_text']
|
| 17 |
print(translation)
|
| 18 |
|
|
|
|
| 12 |
#text="Tôi gọi từ văn phòng thuế"#VIE
|
| 13 |
#text="저는 세금청에서 왔습니다."#KOR
|
| 14 |
|
| 15 |
+
translator = pipeline(task="translation", model="nllb-translator",src_lang=sr,tgt_lang=tr)
|
| 16 |
translation = translator(text)[0]['translation_text']
|
| 17 |
print(translation)
|
| 18 |
|