Plachta commited on
Commit
6edba4c
1 Parent(s): f5b3018

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -280,6 +280,7 @@ if __name__ == "__main__":
280
 
281
  with gr.Column():
282
  text_output = gr.Textbox(label="Output Text")
 
283
  audio_output = gr.Audio(label="Output Audio", elem_id="tts-audio")
284
  btn = gr.Button("Generate!")
285
  cus_dur_gn_btn = gr.Button("Regenerate with custom phoneme durations")
@@ -288,7 +289,7 @@ if __name__ == "__main__":
288
  download = gr.Button("Download Audio")
289
  download.click(None, [], [], _js=download_audio_js.format(audio_id="tts-audio"))
290
  with gr.Accordion(label="Speaking Pace Control", open=True):
291
- phoneme_output = gr.Textbox(label="Output Phonemes", interactive=False)
292
  duration_output = gr.Textbox(label="Duration of each phoneme", placeholder="After you generate a sentence, the detailed information of each phoneme's duration will be presented here.",
293
  interactive = True)
294
  cus_dur_gn_btn.click(infer_from_phoneme_dur, inputs=[duration_output, char_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider],
 
280
 
281
  with gr.Column():
282
  text_output = gr.Textbox(label="Output Text")
283
+ phoneme_output = gr.Textbox(label="Output Phonemes", interactive=False)
284
  audio_output = gr.Audio(label="Output Audio", elem_id="tts-audio")
285
  btn = gr.Button("Generate!")
286
  cus_dur_gn_btn = gr.Button("Regenerate with custom phoneme durations")
 
289
  download = gr.Button("Download Audio")
290
  download.click(None, [], [], _js=download_audio_js.format(audio_id="tts-audio"))
291
  with gr.Accordion(label="Speaking Pace Control", open=True):
292
+
293
  duration_output = gr.Textbox(label="Duration of each phoneme", placeholder="After you generate a sentence, the detailed information of each phoneme's duration will be presented here.",
294
  interactive = True)
295
  cus_dur_gn_btn.click(infer_from_phoneme_dur, inputs=[duration_output, char_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider],