Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Commit
•
fc7a5f0
1
Parent(s):
7fb1b05
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ with app:
|
|
65 |
gr.Markdown("### <center>🌊 - 更多精彩应用,敬请关注[滔滔AI](http://www.talktalkai.com);滔滔AI,为爱滔滔!💕</center>")
|
66 |
|
67 |
with gr.Row(variant='panel'):
|
68 |
-
api_key = gr.Textbox(type='password', label='OpenAI API Key
|
69 |
model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='请选择模型(tts-1推理更快,tts-1-hd音质更好)', value='tts-1')
|
70 |
voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='请选择一个说话人', value='alloy')
|
71 |
with gr.Row():
|
@@ -82,7 +82,7 @@ with app:
|
|
82 |
btn_text.click(tts, [inp_text, model, voice, api_key], inp1)
|
83 |
btn1.click(voice_change, [inp1, inp2], out1)
|
84 |
|
85 |
-
gr.Markdown("### <center
|
86 |
gr.HTML('''
|
87 |
<div class="footer">
|
88 |
<p>🌊🏞️🎶 - 江水东流急,滔滔无尽声。 明·顾璘
|
|
|
65 |
gr.Markdown("### <center>🌊 - 更多精彩应用,敬请关注[滔滔AI](http://www.talktalkai.com);滔滔AI,为爱滔滔!💕</center>")
|
66 |
|
67 |
with gr.Row(variant='panel'):
|
68 |
+
api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='请在此填写您的OpenAI API Key')
|
69 |
model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='请选择模型(tts-1推理更快,tts-1-hd音质更好)', value='tts-1')
|
70 |
voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='请选择一个说话人', value='alloy')
|
71 |
with gr.Row():
|
|
|
82 |
btn_text.click(tts, [inp_text, model, voice, api_key], inp1)
|
83 |
btn1.click(voice_change, [inp1, inp2], out1)
|
84 |
|
85 |
+
gr.Markdown("### <center>注意❗:请不要生成会对个人以及组织造成侵害的内容,此程序仅供科研、学习及个人娱乐使用。Get your OpenAI API Key [here](https://platform.openai.com/api-keys).</center>")
|
86 |
gr.HTML('''
|
87 |
<div class="footer">
|
88 |
<p>🌊🏞️🎶 - 江水东流急,滔滔无尽声。 明·顾璘
|