engmatic-earth commited on
Commit
cddddc3
1 Parent(s): 356f1c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -6,6 +6,7 @@ tokenizer = T5Tokenizer.from_pretrained("engmatic-earth/mt5-zh-ja-en-trimmed-fin
6
  model = AutoModelForSeq2SeqLM.from_pretrained("engmatic-earth/mt5-zh-ja-en-trimmed-fine-tuned-v1")
7
 
8
  def output(input_text):
 
9
  input_text = re.sub('(!|!)', '.', input_text)
10
  target_sentence_list = []
11
  for part in input_text.split("."):
6
  model = AutoModelForSeq2SeqLM.from_pretrained("engmatic-earth/mt5-zh-ja-en-trimmed-fine-tuned-v1")
7
 
8
  def output(input_text):
9
+ input_text = input_text.lower()
10
  input_text = re.sub('(!|!)', '.', input_text)
11
  target_sentence_list = []
12
  for part in input_text.split("."):