Plachta commited on
Commit
5051298
1 Parent(s): e7373fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -225,12 +225,12 @@ if __name__ == "__main__":
225
  with gr.Column():
226
  text_output = gr.Textbox(label="Output Text")
227
  audio_output = gr.Audio(label="Output Audio", elem_id="tts-audio")
 
 
 
 
228
  download = gr.Button("Download Audio")
229
  download.click(None, [], [], _js=download_audio_js.format(audio_id="tts-audio"))
230
- btn = gr.Button("Generate!")
231
- btn.click(infer, inputs=[textbox, char_dropdown, language_dropdown,
232
- duration_slider, noise_scale_slider, noise_scale_w_slider, symbol_input],
233
- outputs=[text_output, audio_output])
234
  examples = [['お疲れ様です,トレーナーさん。', '1:无声铃鹿', '日本語', 1, 0.667, 0.8, False],
235
  ['張り切っていこう!', '67:北部玄驹', '日本語', 1, 0.667, 0.8, False],
236
  ['何でこんなに慣れでんのよ,私のほが先に好きだっだのに。', '10:草上飞', '日本語', 1, 0.667, 0.8, False],
@@ -247,6 +247,7 @@ if __name__ == "__main__":
247
  gr.Markdown("# Updates Logs 更新日志:\n\n"
248
  "2023/1/12:\n\n"
249
  "增加了音素输入的功能,可以对语气和语调做到一定程度的精细控制。"
 
250
  "2023/1/10:\n\n"
251
  "数据集已上传,您可以在[这里](https://huggingface.co/datasets/Plachta/Umamusume-voice-text-pairs/tree/main)下载。\n\n"
252
  "2023/1/9:\n\n"
 
225
  with gr.Column():
226
  text_output = gr.Textbox(label="Output Text")
227
  audio_output = gr.Audio(label="Output Audio", elem_id="tts-audio")
228
+ btn = gr.Button("Generate!")
229
+ btn.click(infer, inputs=[textbox, char_dropdown, language_dropdown,
230
+ duration_slider, noise_scale_slider, noise_scale_w_slider, symbol_input],
231
+ outputs=[text_output, audio_output])
232
  download = gr.Button("Download Audio")
233
  download.click(None, [], [], _js=download_audio_js.format(audio_id="tts-audio"))
 
 
 
 
234
  examples = [['お疲れ様です,トレーナーさん。', '1:无声铃鹿', '日本語', 1, 0.667, 0.8, False],
235
  ['張り切っていこう!', '67:北部玄驹', '日本語', 1, 0.667, 0.8, False],
236
  ['何でこんなに慣れでんのよ,私のほが先に好きだっだのに。', '10:草上飞', '日本語', 1, 0.667, 0.8, False],
 
247
  gr.Markdown("# Updates Logs 更新日志:\n\n"
248
  "2023/1/12:\n\n"
249
  "增加了音素输入的功能,可以对语气和语调做到一定程度的精细控制。"
250
+ "调整了UI的布局。"
251
  "2023/1/10:\n\n"
252
  "数据集已上传,您可以在[这里](https://huggingface.co/datasets/Plachta/Umamusume-voice-text-pairs/tree/main)下载。\n\n"
253
  "2023/1/9:\n\n"