Spaces:
Runtime error
Runtime error
Commit
·
82552c6
1
Parent(s):
e6c2863
Update app.py
Browse files
app.py
CHANGED
@@ -753,6 +753,10 @@ def main():
|
|
753 |
textbox_4 = gr.TextArea(label="请输入您想合成的文本",
|
754 |
placeholder="说点什么吧(中英皆可)...",
|
755 |
elem_id=f"tts-input")
|
|
|
|
|
|
|
|
|
756 |
language_dropdown_4 = gr.Dropdown(choices=['auto-detect', 'English', '中文', '日本語'], value='auto-detect',
|
757 |
label='language', visible=False)
|
758 |
accent_dropdown_4 = gr.Dropdown(choices=['no-accent', 'English', '中文', '日本語'], value='no-accent',
|
@@ -761,7 +765,7 @@ def main():
|
|
761 |
prompt_file_4 = prompt_output_2
|
762 |
with gr.Column():
|
763 |
text_output_4 = gr.TextArea(label="Message", visible=False)
|
764 |
-
audio_output_4 = gr.Audio(label="为您合成的专属语音", elem_id="tts-audio")
|
765 |
|
766 |
|
767 |
radio = gr.Radio(
|
@@ -793,8 +797,6 @@ def main():
|
|
793 |
gr.Image(label="Enhanced spectrogram", visible=False),
|
794 |
]
|
795 |
|
796 |
-
btn_4 = gr.Button("声音克隆", variant="primary")
|
797 |
-
btn_5 = gr.Button("去除噪音", variant="primary")
|
798 |
btn_4.click(infer_long_text,
|
799 |
inputs=[textbox_4, preset_dropdown_4, prompt_file_4, language_dropdown_4, accent_dropdown_4],
|
800 |
outputs=[text_output_4, audio_output_4])
|
|
|
753 |
textbox_4 = gr.TextArea(label="请输入您想合成的文本",
|
754 |
placeholder="说点什么吧(中英皆可)...",
|
755 |
elem_id=f"tts-input")
|
756 |
+
|
757 |
+
btn_4 = gr.Button("声音克隆", variant="primary")
|
758 |
+
btn_5 = gr.Button("去除噪音", variant="primary")
|
759 |
+
|
760 |
language_dropdown_4 = gr.Dropdown(choices=['auto-detect', 'English', '中文', '日本語'], value='auto-detect',
|
761 |
label='language', visible=False)
|
762 |
accent_dropdown_4 = gr.Dropdown(choices=['no-accent', 'English', '中文', '日本語'], value='no-accent',
|
|
|
765 |
prompt_file_4 = prompt_output_2
|
766 |
with gr.Column():
|
767 |
text_output_4 = gr.TextArea(label="Message", visible=False)
|
768 |
+
audio_output_4 = gr.Audio(label="为您合成的专属语音", elem_id="tts-audio", interactive=False)
|
769 |
|
770 |
|
771 |
radio = gr.Radio(
|
|
|
797 |
gr.Image(label="Enhanced spectrogram", visible=False),
|
798 |
]
|
799 |
|
|
|
|
|
800 |
btn_4.click(infer_long_text,
|
801 |
inputs=[textbox_4, preset_dropdown_4, prompt_file_4, language_dropdown_4, accent_dropdown_4],
|
802 |
outputs=[text_output_4, audio_output_4])
|