Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -136,8 +136,8 @@ def text_to_phone_idx(text):
|
|
136 |
|
137 |
def text_to_speech(duration_net, generator, text):
|
138 |
# prevent too long text
|
139 |
-
if len(text) > 500:
|
140 |
-
|
141 |
|
142 |
phone_idx = text_to_phone_idx(text)
|
143 |
batch = {
|
|
|
136 |
|
137 |
def text_to_speech(duration_net, generator, text):
|
138 |
# prevent too long text
|
139 |
+
# if len(text) > 500:
|
140 |
+
# text = text[:500]
|
141 |
|
142 |
phone_idx = text_to_phone_idx(text)
|
143 |
batch = {
|