CadenzaBaron commited on
Commit
e5432a3
1 Parent(s): bdf8016

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = transformers.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"
 
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"