Jellyfish042 commited on
Commit
ae48852
1 Parent(s): e79f0d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
3
 
4
  tokenizer = AutoTokenizer.from_pretrained("google/mt5-small")
5
- model = AutoModelForSeq2SeqLM.from_pretrained("./checkpoint-2500/")
6
 
7
  def text_processing(text):
8
  text = text + ' ' if text[-2:] != ' ' else text # 在末尾加上空格有利于模型预测
 
2
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
3
 
4
  tokenizer = AutoTokenizer.from_pretrained("google/mt5-small")
5
+ model = AutoModelForSeq2SeqLM.from_pretrained("./checkpoint-12500/")
6
 
7
  def text_processing(text):
8
  text = text + ' ' if text[-2:] != ' ' else text # 在末尾加上空格有利于模型预测