cymic commited on
Commit
62f0943
1 Parent(s): 55d3ee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -326,9 +326,9 @@ if __name__ == "__main__":
326
  "注意这些数字只能是整数。 \n\n(1 代表 0.01161 秒的长度)\n\n"
327
  )
328
  btn.click(infer, inputs=[textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider, symbol_input],
329
- outputs=[text_output, audio_output, phoneme_output, duration_output], api_name="generate")
330
  cus_dur_gn_btn.click(infer_from_phoneme_dur, inputs=[duration_output, char_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider],
331
- outputs=[phoneme_output, audio_output], api_name="custom_duration")
332
 
333
  examples = [['haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......', '29:米浴', '日本語', 1, 0.667, 0.8, True],
334
  ['お疲れ様です,トレーナーさん。', '1:无声铃鹿', '日本語', 1, 0.667, 0.8, False],
@@ -368,4 +368,6 @@ if __name__ == "__main__":
368
  "Now integrated to [Moe-tts](https://huggingface.co/spaces/skytnt/moe-tts) collection.\n\n"
369
  "现已加入[Moe-tts](https://huggingface.co/spaces/skytnt/moe-tts)模型大全。\n\n"
370
  )
 
 
371
  app.queue(concurrency_count=3).launch(show_api=True, share=args.share)
 
326
  "注意这些数字只能是整数。 \n\n(1 代表 0.01161 秒的长度)\n\n"
327
  )
328
  btn.click(infer, inputs=[textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider, symbol_input],
329
+ outputs=[text_output, audio_output, phoneme_output, duration_output])
330
  cus_dur_gn_btn.click(infer_from_phoneme_dur, inputs=[duration_output, char_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider],
331
+ outputs=[phoneme_output, audio_output]")
332
 
333
  examples = [['haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......haa\u2193......', '29:米浴', '日本語', 1, 0.667, 0.8, True],
334
  ['お疲れ様です,トレーナーさん。', '1:无声铃鹿', '日本語', 1, 0.667, 0.8, False],
 
368
  "Now integrated to [Moe-tts](https://huggingface.co/spaces/skytnt/moe-tts) collection.\n\n"
369
  "现已加入[Moe-tts](https://huggingface.co/spaces/skytnt/moe-tts)模型大全。\n\n"
370
  )
371
+ ifa = gr.Interface(lambda: None, inputs=[textbox], outputs=[text_output])
372
+
373
  app.queue(concurrency_count=3).launch(show_api=True, share=args.share)