Jezia commited on
Commit
03c7df4
·
1 Parent(s): fffdd3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 120
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