ccoreilly commited on
Commit
3524910
1 Parent(s): ccb20f4
Files changed (1) hide show
  1. app.py +2 -2
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: str, speaker_idx: str=None):
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=False,
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