Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ MAX_TXT_LEN = 100
|
|
13 |
|
14 |
SPEAKERS = ['f_cen_05', 'f_cen_81', 'f_occ_31', 'f_occ_de', 'f_sep_31', 'm_cen_08', 'm_occ_44', 'm_val_89']
|
15 |
|
16 |
-
def tts(text
|
17 |
if len(text) > MAX_TXT_LEN:
|
18 |
text = text[:MAX_TXT_LEN]
|
19 |
print(f"Input text was cutoff since it went over the {MAX_TXT_LEN} character limit.")
|
@@ -69,7 +69,7 @@ iface = gr.Interface(
|
|
69 |
theme="grass",
|
70 |
description=description,
|
71 |
article=article,
|
72 |
-
allow_flagging=
|
73 |
flagging_options=['error', 'bad-quality', 'wrong-pronounciation'],
|
74 |
layout="vertical",
|
75 |
live=False
|
|
|
13 |
|
14 |
SPEAKERS = ['f_cen_05', 'f_cen_81', 'f_occ_31', 'f_occ_de', 'f_sep_31', 'm_cen_08', 'm_occ_44', 'm_val_89']
|
15 |
|
16 |
+
def tts(text, speaker_idx):
|
17 |
if len(text) > MAX_TXT_LEN:
|
18 |
text = text[:MAX_TXT_LEN]
|
19 |
print(f"Input text was cutoff since it went over the {MAX_TXT_LEN} character limit.")
|
|
|
69 |
theme="grass",
|
70 |
description=description,
|
71 |
article=article,
|
72 |
+
allow_flagging="never",
|
73 |
flagging_options=['error', 'bad-quality', 'wrong-pronounciation'],
|
74 |
layout="vertical",
|
75 |
live=False
|