kdrkdrkdr commited on
Commit
c27a654
1 Parent(s): f43ee7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ def create_tts_fn(model, hps, speaker_ids):
28
  def tts_fn(text, speaker, speed, is_phoneme):
29
  if limitation:
30
  text_len = len(text)
31
- max_len = 300
32
  if is_phoneme:
33
  max_len *= 3
34
  else:
@@ -123,7 +123,7 @@ if __name__ == '__main__':
123
  gr.Markdown(f"## {name}\n\n"
124
  f"![cover](file/{cover_path})\n\n"
125
  f"lang: {lang}")
126
- tts_input1 = gr.TextArea(label="Text (300 words limitation)", value=example,
127
  elem_id=f"tts-input{i}")
128
  tts_input2 = gr.Dropdown(label="Speaker", choices=speakers,
129
  type="index", value=speakers[0])
 
28
  def tts_fn(text, speaker, speed, is_phoneme):
29
  if limitation:
30
  text_len = len(text)
31
+ max_len = 500
32
  if is_phoneme:
33
  max_len *= 3
34
  else:
 
123
  gr.Markdown(f"## {name}\n\n"
124
  f"![cover](file/{cover_path})\n\n"
125
  f"lang: {lang}")
126
+ tts_input1 = gr.TextArea(label="Text (500 words limitation)", value=example,
127
  elem_id=f"tts-input{i}")
128
  tts_input2 = gr.Dropdown(label="Speaker", choices=speakers,
129
  type="index", value=speakers[0])