test
Browse files
app.py
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
baseline_interactive.py
|
3 |
"""
|
4 |
import gradio as gr
|
5 |
-
from transformers import MBartForConditionalGeneration,
|
6 |
from transformers import pipeline
|
7 |
|
8 |
model_name = "momo/rsp-sum"
|
9 |
model = MBartForConditionalGeneration.from_pretrained(model_name)
|
10 |
-
tokenizer =
|
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 |
|