Spaces:
Sleeping
Sleeping
Crawford.Zhou
commited on
Commit
•
7be2e7a
1
Parent(s):
4d5e4b2
添加gpt问答接口
Browse files
app.py
CHANGED
@@ -147,6 +147,9 @@ if __name__ == "__main__":
|
|
147 |
noise_scale_w = gr.Slider(minimum=0.1, maximum=1, value=0.9, step=0.01, label='音素长度')
|
148 |
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='生成长度')
|
149 |
btn = gr.Button("点击生成", variant="primary")
|
|
|
|
|
|
|
150 |
btn.click(tts_fn,
|
151 |
inputs=[text, key, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
152 |
outputs=[text_output, audio_output])
|
|
|
147 |
noise_scale_w = gr.Slider(minimum=0.1, maximum=1, value=0.9, step=0.01, label='音素长度')
|
148 |
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='生成长度')
|
149 |
btn = gr.Button("点击生成", variant="primary")
|
150 |
+
with gr.Column():
|
151 |
+
text_output = gr.Textbox(label="Message")
|
152 |
+
audio_output = gr.Audio(label="Output Audio")
|
153 |
btn.click(tts_fn,
|
154 |
inputs=[text, key, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
155 |
outputs=[text_output, audio_output])
|