Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,9 @@ 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 = txtsplit(text)
|
| 38 |
v = voice.lower()
|
| 39 |
audios = []
|
|
@@ -68,6 +71,9 @@ 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 = txtsplit(text)
|
| 72 |
audios = []
|
| 73 |
for t in progress.tqdm(texts):
|
|
@@ -85,6 +91,9 @@ 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 = txtsplit(text)
|
| 89 |
audios = []
|
| 90 |
for t in progress.tqdm(texts):
|
|
|
|
| 34 |
raise gr.Error("You must enter some text")
|
| 35 |
if len(text) > 50000:
|
| 36 |
raise gr.Error("Text must be <50k characters")
|
| 37 |
+
print("*** saying ***")
|
| 38 |
+
print(text)
|
| 39 |
+
print("*** end ***")
|
| 40 |
texts = txtsplit(text)
|
| 41 |
v = voice.lower()
|
| 42 |
audios = []
|
|
|
|
| 71 |
raise gr.Error("You must enter some text")
|
| 72 |
if len(text) > 50000:
|
| 73 |
raise gr.Error("Text must be <50k characters")
|
| 74 |
+
print("*** saying ***")
|
| 75 |
+
print(text)
|
| 76 |
+
print("*** end ***")
|
| 77 |
texts = txtsplit(text)
|
| 78 |
audios = []
|
| 79 |
for t in progress.tqdm(texts):
|
|
|
|
| 91 |
raise gr.Error("You must enter some text")
|
| 92 |
if len(text) > 150000:
|
| 93 |
raise gr.Error("Text must be <150k characters")
|
| 94 |
+
print("*** saying ***")
|
| 95 |
+
print(text)
|
| 96 |
+
print("*** end ***")
|
| 97 |
texts = txtsplit(text)
|
| 98 |
audios = []
|
| 99 |
for t in progress.tqdm(texts):
|