taohoang commited on
Commit
fc86356
1 Parent(s): 33c6fbc

Test new max length

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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"