mitudesk commited on
Commit
c029afd
1 Parent(s): 9c6843a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,6 +36,7 @@ limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in h
36
 
37
  def create_tts_fn(model, hps, speaker_ids):
38
  def tts_fn(text, speaker, language, speed, is_symbol):
 
39
  if limitation:
40
  text_len = len(re.sub("\[([A-Z]{2})\]", "", text))
41
  max_len = 150
@@ -242,8 +243,7 @@ if __name__ == "__main__":
242
  text_output = gr.Textbox(label="Message")
243
  audio_output = gr.Audio(label="Output Audio", elem_id="tts-audio")
244
  btn = gr.Button("Generate!")
245
- print(textbox, char_dropdown, language_dropdown, duration_slider,
246
- symbol_input)
247
  btn.click(tts_fn,
248
  inputs=[textbox, char_dropdown, language_dropdown, duration_slider,
249
  symbol_input],
 
36
 
37
  def create_tts_fn(model, hps, speaker_ids):
38
  def tts_fn(text, speaker, language, speed, is_symbol):
39
+ print(text, speaker, language, speed, is_symbol)
40
  if limitation:
41
  text_len = len(re.sub("\[([A-Z]{2})\]", "", text))
42
  max_len = 150
 
243
  text_output = gr.Textbox(label="Message")
244
  audio_output = gr.Audio(label="Output Audio", elem_id="tts-audio")
245
  btn = gr.Button("Generate!")
246
+
 
247
  btn.click(tts_fn,
248
  inputs=[textbox, char_dropdown, language_dropdown, duration_slider,
249
  symbol_input],