Frenchizer commited on
Commit
75c7e8c
·
verified ·
1 Parent(s): 56cee0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def gradio_predict(input_text):
14
  tokenized_input = tokenizer(
15
  input_text,
16
  return_tensors="np",
17
- padding=True,
18
  truncation=True, # Ensures input is truncated if it's too long
19
  max_length=512 # Ensure the sequence doesn't exceed the model's max length
20
  )
 
14
  tokenized_input = tokenizer(
15
  input_text,
16
  return_tensors="np",
17
+ padding="max_length",
18
  truncation=True, # Ensures input is truncated if it's too long
19
  max_length=512 # Ensure the sequence doesn't exceed the model's max length
20
  )