Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ MAX_LENGHT = 60
|
|
| 35 |
tokens_train = tokenizer.batch_encode_plus(
|
| 36 |
train_text.tolist(),
|
| 37 |
max_length = MAX_LENGHT,
|
| 38 |
-
|
| 39 |
truncation=True
|
| 40 |
)
|
| 41 |
# tokenize and encode sequences in the validation set
|
|
|
|
| 35 |
tokens_train = tokenizer.batch_encode_plus(
|
| 36 |
train_text.tolist(),
|
| 37 |
max_length = MAX_LENGHT,
|
| 38 |
+
padding=True,
|
| 39 |
truncation=True
|
| 40 |
)
|
| 41 |
# tokenize and encode sequences in the validation set
|