acecalisto3 commited on
Commit
e4efcff
·
verified ·
1 Parent(s): afd66a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1173,7 +1173,7 @@ def load_model():
1173
  model_name = "google/flan-t5-xl"
1174
  try:
1175
  # Load tokenizer with warning suppression
1176
- tokenizer = "google/flan-t5-xl", clean_up_tokenization_spaces=True)
1177
 
1178
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
1179
  pipe = pipeline(
 
1173
  model_name = "google/flan-t5-xl"
1174
  try:
1175
  # Load tokenizer with warning suppression
1176
+ tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-xl", clean_up_tokenization_spaces=True)
1177
 
1178
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
1179
  pipe = pipeline(