Try smaller max length
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def synthesise(text):
|
|
34 |
# Otherwise model.generate_speech will throw errors.
|
35 |
inputs = processor(
|
36 |
text=text,
|
37 |
-
max_length=
|
38 |
truncation=True,
|
39 |
-
padding=True,
|
40 |
return_tensors="pt"
|
41 |
)
|
42 |
# inputs = processor(text=text, return_tensors="pt")
|
|
|
34 |
# Otherwise model.generate_speech will throw errors.
|
35 |
inputs = processor(
|
36 |
text=text,
|
37 |
+
max_length=200,
|
38 |
truncation=True,
|
39 |
+
# padding=True,
|
40 |
return_tensors="pt"
|
41 |
)
|
42 |
# inputs = processor(text=text, return_tensors="pt")
|