max_length: Someone may be sending long texts...

#1
by Pendrokar - opened
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,7 +13,8 @@ class TTSWebUI:
13
  inputs=[gr.Textbox(lines=2,
14
  placeholder="write what you want the synthesis to read here...",
15
  value="What I cannot create, I do not understand.",
16
- label="Text input")],
 
17
  outputs=[gr.Audio(type="numpy", label="Speech")],
18
  title=title,
19
  theme="default",
 
13
  inputs=[gr.Textbox(lines=2,
14
  placeholder="write what you want the synthesis to read here...",
15
  value="What I cannot create, I do not understand.",
16
+ label="Text input"),
17
+ max_length=300],
18
  outputs=[gr.Audio(type="numpy", label="Speech")],
19
  title=title,
20
  theme="default",