Spaces:
Runtime error
Runtime error
CadenzaBaron
commited on
Commit
•
e5432a3
1
Parent(s):
bdf8016
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import M2M100Tokenizer, AutoModelForSeq2SeqLM
|
3 |
def greet(input_text):
|
4 |
-
tokenizer =
|
5 |
model = AutoModelForSeq2SeqLM.from_pretrained("CadenzaBaron/M2M100-418M-for-GameTranslation-Finetuned-Zh-En")
|
6 |
tokenizer.src_lang = "zh"
|
7 |
tokenizer.tgt_lang = "en"
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import M2M100Tokenizer, AutoModelForSeq2SeqLM
|
3 |
def greet(input_text):
|
4 |
+
tokenizer = M2M100Tokenizer.from_pretrained("CadenzaBaron/M2M100-418M-for-GameTranslation-Finetuned-Zh-En")
|
5 |
model = AutoModelForSeq2SeqLM.from_pretrained("CadenzaBaron/M2M100-418M-for-GameTranslation-Finetuned-Zh-En")
|
6 |
tokenizer.src_lang = "zh"
|
7 |
tokenizer.tgt_lang = "en"
|