Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 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 |
)
|