Spaces:
Sleeping
Sleeping
ORI-Muchim
commited on
Commit
•
69797e5
1
Parent(s):
9e83c4d
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def create_tts_fn(model, hps, speaker_ids):
|
|
28 |
def tts_fn(text, speaker, speed, is_phoneme):
|
29 |
if limitation:
|
30 |
text_len = len(text)
|
31 |
-
max_len =
|
32 |
if is_phoneme:
|
33 |
max_len *= 3
|
34 |
else:
|
@@ -122,7 +122,7 @@ if __name__ == '__main__':
|
|
122 |
gr.Markdown(f"## {name}\n\n"
|
123 |
f"![cover](file/{cover_path})\n\n"
|
124 |
f"lang: {lang}")
|
125 |
-
tts_input1 = gr.TextArea(label="Text (
|
126 |
elem_id=f"tts-input{i}")
|
127 |
tts_input2 = gr.Dropdown(label="Speaker", choices=speakers,
|
128 |
type="index", value=speakers[0])
|
|
|
28 |
def tts_fn(text, speaker, speed, is_phoneme):
|
29 |
if limitation:
|
30 |
text_len = len(text)
|
31 |
+
max_len = 700
|
32 |
if is_phoneme:
|
33 |
max_len *= 3
|
34 |
else:
|
|
|
122 |
gr.Markdown(f"## {name}\n\n"
|
123 |
f"![cover](file/{cover_path})\n\n"
|
124 |
f"lang: {lang}")
|
125 |
+
tts_input1 = gr.TextArea(label="Text (700 words limitation)", value=example,
|
126 |
elem_id=f"tts-input{i}")
|
127 |
tts_input2 = gr.Dropdown(label="Speaker", choices=speakers,
|
128 |
type="index", value=speakers[0])
|