wmz commited on
Commit
3df27e3
·
1 Parent(s): 75dec07

fixed for tokenizer

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_dir)
15
  model = AutoModelForSequenceClassification.from_pretrained(model_dir, config=config)
16
 
17
  def inference(input_text):
18
- inputs = tokenizer.batch_encode_plus(
19
  [input_text],
20
  max_length=512,
21
  pad_to_max_length=True,
 
15
  model = AutoModelForSequenceClassification.from_pretrained(model_dir, config=config)
16
 
17
  def inference(input_text):
18
+ inputs = tokenizer(
19
  [input_text],
20
  max_length=512,
21
  pad_to_max_length=True,