datasetsANDmodels commited on
Commit
85f2ce7
·
verified ·
1 Parent(s): 10fa466

Rename nllb.py to usage.py

Browse files
Files changed (1) hide show
  1. 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