seawolf2357 commited on
Commit
871d29d
·
verified ·
1 Parent(s): acae078

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,8 +67,8 @@ def tts(text,
67
  np.random.seed(random_seed)
68
 
69
  text_len = len(text)
70
- if text_len > 200:
71
- raise gr.Error("Text length limited to 200 characters for this demo. Current text length is " + str(text_len))
72
 
73
  else:
74
  text = text_to_sequence(str(text), ["english_cleaners2"])
@@ -222,7 +222,7 @@ def main():
222
 
223
  demo_play = gr.Interface(fn=tts,
224
  inputs=[
225
- gr.Textbox(max_lines=6, label="Input Text", value="I am Taylor Swift. Be the change that you wish to see in the world", info="Up to 200 characters"),
226
  gr.Audio(type='filepath', value="./example/TaylorSwift.wav"),
227
  gr.Slider(0,1,0.333),
228
  gr.Slider(0,1,0.333),
 
67
  np.random.seed(random_seed)
68
 
69
  text_len = len(text)
70
+ if text_len > 400:
71
+ raise gr.Error("Text length limited to 400 characters for this demo. Current text length is " + str(text_len))
72
 
73
  else:
74
  text = text_to_sequence(str(text), ["english_cleaners2"])
 
222
 
223
  demo_play = gr.Interface(fn=tts,
224
  inputs=[
225
+ gr.Textbox(max_lines=6, label="Input Text", value="I am Taylor Swift. Be the change that you wish to see in the world", info="Up to 400 characters"),
226
  gr.Audio(type='filepath', value="./example/TaylorSwift.wav"),
227
  gr.Slider(0,1,0.333),
228
  gr.Slider(0,1,0.333),