mrfakename commited on
Commit
3ecf742
1 Parent(s): 85fcd3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,7 +68,7 @@ def clsynthesize(text, voice, vcsteps, progress=gr.Progress()):
68
  raise gr.Error("You must enter some text")
69
  if len(text) > 50000:
70
  raise gr.Error("Text must be <50k characters")
71
- texts = split_and_recombine_text(text)
72
  audios = []
73
  for t in progress.tqdm(texts):
74
  audios.append(styletts2importable.inference(t, styletts2importable.compute_style(voice), alpha=0.3, beta=0.7, diffusion_steps=vcsteps, embedding_scale=1))
@@ -85,7 +85,7 @@ def ljsynthesize(text, steps, progress=gr.Progress()):
85
  raise gr.Error("You must enter some text")
86
  if len(text) > 150000:
87
  raise gr.Error("Text must be <150k characters")
88
- texts = split_and_recombine_text(text)
89
  audios = []
90
  for t in progress.tqdm(texts):
91
  audios.append(ljspeechimportable.inference(t, noise, diffusion_steps=steps, embedding_scale=1))
 
68
  raise gr.Error("You must enter some text")
69
  if len(text) > 50000:
70
  raise gr.Error("Text must be <50k characters")
71
+ texts = txtsplit(text)
72
  audios = []
73
  for t in progress.tqdm(texts):
74
  audios.append(styletts2importable.inference(t, styletts2importable.compute_style(voice), alpha=0.3, beta=0.7, diffusion_steps=vcsteps, embedding_scale=1))
 
85
  raise gr.Error("You must enter some text")
86
  if len(text) > 150000:
87
  raise gr.Error("Text must be <150k characters")
88
+ texts = txtsplit(text)
89
  audios = []
90
  for t in progress.tqdm(texts):
91
  audios.append(ljspeechimportable.inference(t, noise, diffusion_steps=steps, embedding_scale=1))