1101411 commited on
Commit
530a643
·
1 Parent(s): 03cef28
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ from transformers import pipeline
2
  import gradio as grad
3
 
4
  model_name = "facebook/nllb-200-distilled-600M"
5
- opus_translator = pipeline("translation", model=model_name)
6
 
7
  def translate(text):
8
  response = opus_translator(text)
 
2
  import gradio as grad
3
 
4
  model_name = "facebook/nllb-200-distilled-600M"
5
+ opus_translator = pipeline("translation", model=model_name, src_lang="eng_Latn", tgt_lang="kor_Hang")
6
 
7
  def translate(text):
8
  response = opus_translator(text)