zxsipola123456 commited on
Commit
ec22fdb
·
verified ·
1 Parent(s): d310ffd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,7 +94,7 @@ with app:
94
  btn1 = gr.Button("一键开启AI变声吧", variant="primary")
95
  with gr.Column():
96
  out1 = gr.Audio(type="filepath", label="AI变声后的专属音频")
97
- btn_text.click(tts, [inp_text, model, voice, api_key], inp1)
98
  btn1.click(voice_change, [inp1, inp2], out1)
99
  with gr.Tab("⚡ Edge TTS"):
100
  with gr.Row():
@@ -121,4 +121,4 @@ with app:
121
  </div>
122
  ''')
123
 
124
- app.launch(share=True, show_error=True)
 
94
  btn1 = gr.Button("一键开启AI变声吧", variant="primary")
95
  with gr.Column():
96
  out1 = gr.Audio(type="filepath", label="AI变声后的专属音频")
97
+ btn_text.click(tts, [inp_text, model, voice, api_key, base_url], inp1)
98
  btn1.click(voice_change, [inp1, inp2], out1)
99
  with gr.Tab("⚡ Edge TTS"):
100
  with gr.Row():
 
121
  </div>
122
  ''')
123
 
124
+ app.launch(share=True)