Dupaja commited on
Commit
0f44792
1 Parent(s): c00de09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -55,10 +55,8 @@ def synthesize(text, voice, lngsteps, password, progress=gr.Progress()):
55
  return (24000, np.concatenate(audios))
56
 
57
  def clsynthesize(text, voice, vcsteps, progress=gr.Progress()):
58
- if text.strip() == "":
59
  raise gr.Error("You must enter some text")
60
- if len(text) > 50000:
61
- raise gr.Error("Text must be <50k characters")
62
  texts = split_and_recombine_text(text)
63
  audios = []
64
  for t in progress.tqdm(texts):
@@ -69,8 +67,6 @@ def ljsynthesize(text, steps, progress=gr.Progress()):
69
  # return (24000, ljspeechimportable.inference(text, noise, diffusion_steps=7, embedding_scale=1))
70
  if text.strip() == "":
71
  raise gr.Error("You must enter some text")
72
- if len(text) > 150000:
73
- raise gr.Error("Text must be <150k characters")
74
  texts = split_and_recombine_text(text)
75
  audios = []
76
  for t in progress.tqdm(texts):
 
55
  return (24000, np.concatenate(audios))
56
 
57
  def clsynthesize(text, voice, vcsteps, progress=gr.Progress()):
58
+ if text.strip() == "":
59
  raise gr.Error("You must enter some text")
 
 
60
  texts = split_and_recombine_text(text)
61
  audios = []
62
  for t in progress.tqdm(texts):
 
67
  # return (24000, ljspeechimportable.inference(text, noise, diffusion_steps=7, embedding_scale=1))
68
  if text.strip() == "":
69
  raise gr.Error("You must enter some text")
 
 
70
  texts = split_and_recombine_text(text)
71
  audios = []
72
  for t in progress.tqdm(texts):