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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import styletts2importable
3
  import ljspeechimportable
4
  import torch
5
  import os
6
- from tortoise.utils.text import split_and_recombine_text
7
  import numpy as np
8
  import pickle
9
  theme = gr.themes.Base(
@@ -34,7 +34,7 @@ def synthesize(text, voice, lngsteps, password, progress=gr.Progress()):
34
  raise gr.Error("You must enter some text")
35
  if len(text) > 50000:
36
  raise gr.Error("Text must be <50k characters")
37
- texts = split_and_recombine_text(text)
38
  v = voice.lower()
39
  audios = []
40
  for t in progress.tqdm(texts):
 
3
  import ljspeechimportable
4
  import torch
5
  import os
6
+ from txtsplit import txtsplit
7
  import numpy as np
8
  import pickle
9
  theme = gr.themes.Base(
 
34
  raise gr.Error("You must enter some text")
35
  if len(text) > 50000:
36
  raise gr.Error("Text must be <50k characters")
37
+ texts = txtsplit(text)
38
  v = voice.lower()
39
  audios = []
40
  for t in progress.tqdm(texts):