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

Try smaller max length

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