Spaces:
Sleeping
Sleeping
Commit ·
a80350e
1
Parent(s): ca9a14d
adjust
Browse files
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
|
| 19 |
[input_text],
|
| 20 |
max_length=512,
|
| 21 |
truncation=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 |
truncation=True,
|