kevinwang676 commited on
Commit
c13cd83
·
verified ·
1 Parent(s): 30f43e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -148,7 +148,8 @@ sft_spk = cosyvoice.list_avaliable_spks()
148
  prompt_sr, target_sr = 16000, 22050
149
  default_data = np.zeros(target_sr)
150
 
151
- with gr.Blocks() as demo:
 
152
  gr.Markdown("# <center>🌊💕🎶 [CosyVoice](https://www.bilibili.com/video/BV1vz421q7ir/) 3秒音频,开启最强声音复刻</center>")
153
  gr.Markdown("## <center>🌟 只需3秒参考音频,一键开启超拟人真实声音复刻,支持中日英韩粤语,无需任何训练!</center>")
154
  gr.Markdown("### <center>🤗 更多精彩,尽在[滔滔AI](https://www.talktalkai.com/);滔滔AI,为爱滔滔!💕</center>")
@@ -184,6 +185,6 @@ with gr.Blocks() as demo:
184
  </p>
185
  </div>
186
  ''')
187
- demo.queue(max_size=40, api_open=False)
188
- demo.launch(max_threads=400, show_error=True)
189
 
 
148
  prompt_sr, target_sr = 16000, 22050
149
  default_data = np.zeros(target_sr)
150
 
151
+ app = gr.Blocks(theme="JohnSmith9982/small_and_pretty")
152
+ with app:
153
  gr.Markdown("# <center>🌊💕🎶 [CosyVoice](https://www.bilibili.com/video/BV1vz421q7ir/) 3秒音频,开启最强声音复刻</center>")
154
  gr.Markdown("## <center>🌟 只需3秒参考音频,一键开启超拟人真实声音复刻,支持中日英韩粤语,无需任何训练!</center>")
155
  gr.Markdown("### <center>🤗 更多精彩,尽在[滔滔AI](https://www.talktalkai.com/);滔滔AI,为爱滔滔!💕</center>")
 
185
  </p>
186
  </div>
187
  ''')
188
+ app.queue(max_size=40, api_open=False)
189
+ app.launch(max_threads=400, show_error=True)
190