Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ model = from_pretrained_keras("keras-io/text-generation-miniature-gpt")
|
|
10 |
def tokenize_data(text):
|
11 |
# Tokenize the review body
|
12 |
input_ = str(text) + ' </s>'
|
13 |
-
max_len =
|
14 |
# tokenize inputs
|
15 |
tokenized_inputs = tokenizer(input_, padding='max_length', truncation=True, max_length=max_len, return_attention_mask=True, return_tensors='pt')
|
16 |
|
|
|
10 |
def tokenize_data(text):
|
11 |
# Tokenize the review body
|
12 |
input_ = str(text) + ' </s>'
|
13 |
+
max_len = 80
|
14 |
# tokenize inputs
|
15 |
tokenized_inputs = tokenizer(input_, padding='max_length', truncation=True, max_length=max_len, return_attention_mask=True, return_tensors='pt')
|
16 |
|