microgravity commited on
Commit
12d837c
·
verified ·
1 Parent(s): fa3261d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -27,8 +27,6 @@ def synthesize_multi(text, voice_audio, speed, progress=gr.Progress()):
27
  prompt_audio_path = os.path.join(prompts_dir, voice_audio+'.wav')
28
  if text.strip() == "":
29
  raise gr.Error("You must enter some text")
30
- if len(text) > 50000:
31
- raise gr.Error("Text must be <50k characters")
32
  print("*** saying ***")
33
  print(text)
34
  print("*** end ***")
@@ -40,8 +38,6 @@ def synthesize_multi(text, voice_audio, speed, progress=gr.Progress()):
40
  def synthesize_single(text, speed, progress=gr.Progress()):
41
  if text.strip() == "":
42
  raise gr.Error("You must enter some text")
43
- if len(text) > 50000:
44
- raise gr.Error("Text must be <50k characters")
45
  print("*** saying ***")
46
  print(text)
47
  print("*** end ***")
 
27
  prompt_audio_path = os.path.join(prompts_dir, voice_audio+'.wav')
28
  if text.strip() == "":
29
  raise gr.Error("You must enter some text")
 
 
30
  print("*** saying ***")
31
  print(text)
32
  print("*** end ***")
 
38
  def synthesize_single(text, speed, progress=gr.Progress()):
39
  if text.strip() == "":
40
  raise gr.Error("You must enter some text")
 
 
41
  print("*** saying ***")
42
  print(text)
43
  print("*** end ***")