Test new max length
Browse files
app.py
CHANGED
@@ -34,7 +34,8 @@ def synthesise(text):
|
|
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"
|
|
|
34 |
# Otherwise model.generate_speech will throw errors.
|
35 |
inputs = processor(
|
36 |
text=text,
|
37 |
+
# max_length=200,
|
38 |
+
max_length=598,
|
39 |
truncation=True,
|
40 |
# padding=True,
|
41 |
return_tensors="pt"
|