Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import styletts2importable
|
|
| 3 |
import ljspeechimportable
|
| 4 |
import torch
|
| 5 |
import os
|
| 6 |
-
from
|
| 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 =
|
| 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):
|