momo commited on
Commit
9823d38
1 Parent(s): 967f75a
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,12 +2,12 @@
2
  baseline_interactive.py
3
  """
4
  import gradio as gr
5
- from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
6
  from transformers import pipeline
7
 
8
  model_name = "momo/rsp-sum"
9
  model = MBartForConditionalGeneration.from_pretrained(model_name)
10
- tokenizer = MBart50TokenizerFast.from_pretrained(model_name, src_lang="ko_KR", tgt_lang="ko_KR")
11
 
12
  # prefix = "translate English to German: "
13
 
 
2
  baseline_interactive.py
3
  """
4
  import gradio as gr
5
+ from transformers import MBartForConditionalGeneration, MBartTokenizer
6
  from transformers import pipeline
7
 
8
  model_name = "momo/rsp-sum"
9
  model = MBartForConditionalGeneration.from_pretrained(model_name)
10
+ tokenizer = MBartTokenizer.from_pretrained(model_name, src_lang="ko_KR", tgt_lang="ko_KR")
11
 
12
  # prefix = "translate English to German: "
13