Spaces:
Running
Running
vickeee465
commited on
Commit
·
027da70
1
Parent(s):
9358f09
shorter max_len
Browse files- interfaces/manifesto.py +1 -1
interfaces/manifesto.py
CHANGED
@@ -49,7 +49,7 @@ def predict(text, model_id, tokenizer_id):
|
|
49 |
|
50 |
with m("Tokenizing"):
|
51 |
inputs = tokenizer(text,
|
52 |
-
max_length=
|
53 |
truncation=True,
|
54 |
padding="do_not_pad",
|
55 |
return_tensors="pt").to(device)
|
|
|
49 |
|
50 |
with m("Tokenizing"):
|
51 |
inputs = tokenizer(text,
|
52 |
+
max_length=256,
|
53 |
truncation=True,
|
54 |
padding="do_not_pad",
|
55 |
return_tensors="pt").to(device)
|