zxsipola123456 commited on
Commit
337362a
·
verified ·
1 Parent(s): 72aedc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -88,9 +88,9 @@ def update_edge_tts_tab(api_key):
88
  app = gr.Blocks()
89
 
90
  with app:
91
- gr.Markdown("# <center>OpenAI TTS + 3秒实时AI变声+需要使用中转key</center>")
92
  gr.Markdown("### <center>中转key购买地址[here](https://buy.sipola.cn),ai文案生成可使用中转key,请访问 [here](https://ai.sipola.cn)</center>")
93
- with gr.Tab("Openai-TTS"):
94
  with gr.Row(variant='panel'):
95
  api_key = gr.Textbox(type='password', label='API Key', placeholder='请在此填写您的中转API Key')
96
  model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='请选择模型(tts-1推理更快,tts-1-hd音质更好)', value='tts-1')
@@ -108,7 +108,7 @@ with app:
108
  btn_text.click(tts, [inp_text, model, voice, api_key], inp1)
109
  btn1.click(voice_change, [inp1, inp2], out1)
110
 
111
- with gr.Tab("TTS变声",interactive=False) as edge_tts_tab:
112
  with gr.Row():
113
  with gr.Column():
114
  input_text = gr.Textbox(label="请填写您想生成的文本中英文皆可",placeholder="请输入ai生成的文案,不要超过300字,最好200字左右",lines=5)
 
88
  app = gr.Blocks()
89
 
90
  with app:
91
+ gr.Markdown("# <center>TTS文本生成语音 + AI秒变声+需要使用中转key</center>")
92
  gr.Markdown("### <center>中转key购买地址[here](https://buy.sipola.cn),ai文案生成可使用中转key,请访问 [here](https://ai.sipola.cn)</center>")
93
+ with gr.Tab("TTS文本生语音"):
94
  with gr.Row(variant='panel'):
95
  api_key = gr.Textbox(type='password', label='API Key', placeholder='请在此填写您的中转API Key')
96
  model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='请选择模型(tts-1推理更快,tts-1-hd音质更好)', value='tts-1')
 
108
  btn_text.click(tts, [inp_text, model, voice, api_key], inp1)
109
  btn1.click(voice_change, [inp1, inp2], out1)
110
 
111
+ with gr.Tab("TTS-AI变声",interactive=False) as edge_tts_tab:
112
  with gr.Row():
113
  with gr.Column():
114
  input_text = gr.Textbox(label="请填写您想生成的文本中英文皆可",placeholder="请输入ai生成的文案,不要超过300字,最好200字左右",lines=5)