Spaces:
Sleeping
Sleeping
wmz commited on
Commit ·
de1f7af
1
Parent(s): 3df27e3
fixed for tokenizer
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ model = AutoModelForSequenceClassification.from_pretrained(model_dir, config=con
|
|
| 16 |
|
| 17 |
def inference(input_text):
|
| 18 |
inputs = tokenizer(
|
| 19 |
-
|
| 20 |
max_length=512,
|
| 21 |
pad_to_max_length=True,
|
| 22 |
truncation=True,
|
|
|
|
| 16 |
|
| 17 |
def inference(input_text):
|
| 18 |
inputs = tokenizer(
|
| 19 |
+
input_text,
|
| 20 |
max_length=512,
|
| 21 |
pad_to_max_length=True,
|
| 22 |
truncation=True,
|