bstraehle commited on
Commit
809f79a
1 Parent(s): cda682a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def load_model(model_name):
131
  tokenizer = model.tokenizer
132
 
133
  if not tokenizer.pad_token:
134
- tokenizer.pad_token = tokenizer.eos_token
135
 
136
  return model, tokenizer
137
 
 
131
  tokenizer = model.tokenizer
132
 
133
  if not tokenizer.pad_token:
134
+ tokenizer.pad_token = "[PAD]"
135
 
136
  return model, tokenizer
137