Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ bert = AutoModel.from_pretrained('bert-base-uncased')
|
|
| 30 |
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
|
| 31 |
|
| 32 |
# Majority of titles above have word length under 60. So, we set max title length as 60
|
| 33 |
-
MAX_LENGHT =
|
| 34 |
# Tokenize and encode sequences in the train set
|
| 35 |
tokens_train = tokenizer.batch_encode_plus(
|
| 36 |
train_text.tolist(),
|
|
|
|
| 30 |
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
|
| 31 |
|
| 32 |
# Majority of titles above have word length under 60. So, we set max title length as 60
|
| 33 |
+
MAX_LENGHT = 64
|
| 34 |
# Tokenize and encode sequences in the train set
|
| 35 |
tokens_train = tokenizer.batch_encode_plus(
|
| 36 |
train_text.tolist(),
|