Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,10 +81,10 @@ def tts(text, model, voice, api_key):
|
|
| 81 |
app = gr.Blocks()
|
| 82 |
|
| 83 |
with app:
|
| 84 |
-
gr.Markdown("# <center>
|
| 85 |
-
gr.Markdown("### <center>
|
| 86 |
-
gr.Markdown("### <center>
|
| 87 |
-
with gr.Tab("
|
| 88 |
with gr.Row(variant='panel'):
|
| 89 |
api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='请在此填写您的OpenAI API Key')
|
| 90 |
model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='请选择模型(tts-1推理更快,tts-1-hd音质更好)', value='tts-1')
|
|
@@ -123,7 +123,7 @@ with app:
|
|
| 123 |
gr.Markdown("### <center>注意❗:请不要生成会对个人以及组织造成侵害的内容,此程序仅供科研、学习及个人娱乐使用。Get your OpenAI API Key [here](https://platform.openai.com/api-keys).</center>")
|
| 124 |
gr.HTML('''
|
| 125 |
<div class="footer">
|
| 126 |
-
<p>
|
| 127 |
</p>
|
| 128 |
</div>
|
| 129 |
''')
|
|
|
|
| 81 |
app = gr.Blocks()
|
| 82 |
|
| 83 |
with app:
|
| 84 |
+
gr.Markdown("# <center>- OpenAI TTS + AI变声</center>")
|
| 85 |
+
gr.Markdown("### <center> 地表最强文本转语音模型 + 3秒实时AI变声,支持中文!Powered by [OpenAI TTS](https://platform.openai.com/docs/guides/text-to-speech) and [KNN-VC](https://github.com/bshall/knn-vc) </center>")
|
| 86 |
+
gr.Markdown("### <center> 更多精彩应用,敬请关注[RJLAPI](https://raojialong.love);</center>")
|
| 87 |
+
with gr.Tab(" OpenAI TTS"):
|
| 88 |
with gr.Row(variant='panel'):
|
| 89 |
api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='请在此填写您的OpenAI API Key')
|
| 90 |
model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='请选择模型(tts-1推理更快,tts-1-hd音质更好)', value='tts-1')
|
|
|
|
| 123 |
gr.Markdown("### <center>注意❗:请不要生成会对个人以及组织造成侵害的内容,此程序仅供科研、学习及个人娱乐使用。Get your OpenAI API Key [here](https://platform.openai.com/api-keys).</center>")
|
| 124 |
gr.HTML('''
|
| 125 |
<div class="footer">
|
| 126 |
+
<p>RJLAPI
|
| 127 |
</p>
|
| 128 |
</div>
|
| 129 |
''')
|