ysharma HF staff commited on
Commit
3d2ca92
·
1 Parent(s): 7951125
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def get_chinese_translation(text): #in_language_first, in_language_second,
23
  print("********Inside get_chinese_translation ********")
24
  src = 'eng_Latn'
25
  tgt= 'zho_Hans'
26
- print(f"text is :{text}, source language is : {in_language_first}, target language is : {in_language_second} ")
27
 
28
  translator = pipeline('translation', model=nllb_model, tokenizer=nllb_tokenizer, src_lang=src, tgt_lang=tgt)
29
  output = translator(text, max_length=400)
 
23
  print("********Inside get_chinese_translation ********")
24
  src = 'eng_Latn'
25
  tgt= 'zho_Hans'
26
+ print(f"text is :{text}, source language is : {src}, target language is : {tgt} ")
27
 
28
  translator = pipeline('translation', model=nllb_model, tokenizer=nllb_tokenizer, src_lang=src, tgt_lang=tgt)
29
  output = translator(text, max_length=400)