Spaces:
Running
Running
Update
Browse files
app.py
CHANGED
@@ -204,24 +204,27 @@ models_info = {
|
|
204 |
"gpt_weight": "blue_archive/alice/alice-e15.ckpt",
|
205 |
"sovits_weight": "blue_archive/alice/alice_e8_s216.pth",
|
206 |
"title": "Blue Archive-天童アリス",
|
|
|
207 |
"example_reference": "召喚にお応じろ!ゴーレムよ!主人の命令に従い!"
|
208 |
},
|
209 |
"yuuka": {
|
210 |
"gpt_weight": "blue_archive/yuuka/yuuka-e15.ckpt",
|
211 |
"sovits_weight": "blue_archive/yuuka/yuuka_e8_s208.pth",
|
212 |
"title": "Blue Archive-早瀬ユウカ",
|
|
|
213 |
"example_reference": "せ~ん~せ~い~。もう少し頑張ってください!"
|
214 |
},
|
215 |
"mika": {
|
216 |
"gpt_weight": "blue_archive/mika/mika-e15.ckpt",
|
217 |
"sovits_weight": "blue_archive/mika/mika_e8_s176.pth",
|
218 |
"title": "Blue Archive-聖園ミカ",
|
|
|
219 |
"example_reference": "あけましておめでとう、先生!こんな私だけど、今年もよろしくね☆"
|
220 |
}
|
221 |
}
|
222 |
for i, info in models_info.items():
|
223 |
title = info['title']
|
224 |
-
cover =
|
225 |
gpt_weight = info['gpt_weight']
|
226 |
sovits_weight = info['sovits_weight']
|
227 |
example_reference = info['example_reference']
|
@@ -260,9 +263,8 @@ with gr.Blocks() as app:
|
|
260 |
gr.Markdown(
|
261 |
'<div align="center">'
|
262 |
f'<a><strong>{title}</strong></a>'
|
263 |
-
f'<img style="width:auto;height:300px;" src="
|
264 |
-
|
265 |
-
)
|
266 |
with gr.Row():
|
267 |
with gr.Column():
|
268 |
prompt_text = gr.Dropdown(
|
@@ -297,7 +299,7 @@ with gr.Blocks() as app:
|
|
297 |
fn=tts_fn,
|
298 |
inputs=[inp_ref_audio, prompt_text, prompt_language, text, text_language],
|
299 |
outputs=[om, output],
|
300 |
-
concurrency_limit=
|
301 |
)
|
302 |
|
303 |
app.queue(max_size=30).launch()
|
|
|
204 |
"gpt_weight": "blue_archive/alice/alice-e15.ckpt",
|
205 |
"sovits_weight": "blue_archive/alice/alice_e8_s216.pth",
|
206 |
"title": "Blue Archive-天童アリス",
|
207 |
+
"cover": "https://pic.imgdb.cn/item/65a7dad6871b83018a48f494.png",
|
208 |
"example_reference": "召喚にお応じろ!ゴーレムよ!主人の命令に従い!"
|
209 |
},
|
210 |
"yuuka": {
|
211 |
"gpt_weight": "blue_archive/yuuka/yuuka-e15.ckpt",
|
212 |
"sovits_weight": "blue_archive/yuuka/yuuka_e8_s208.pth",
|
213 |
"title": "Blue Archive-早瀬ユウカ",
|
214 |
+
"cover": "https://pic.imgdb.cn/item/65a7da95871b83018a47a721.png",
|
215 |
"example_reference": "せ~ん~せ~い~。もう少し頑張ってください!"
|
216 |
},
|
217 |
"mika": {
|
218 |
"gpt_weight": "blue_archive/mika/mika-e15.ckpt",
|
219 |
"sovits_weight": "blue_archive/mika/mika_e8_s176.pth",
|
220 |
"title": "Blue Archive-聖園ミカ",
|
221 |
+
"cover": "https://pic.imgdb.cn/item/65a7daf6871b83018a499034.png",
|
222 |
"example_reference": "あけましておめでとう、先生!こんな私だけど、今年もよろしくね☆"
|
223 |
}
|
224 |
}
|
225 |
for i, info in models_info.items():
|
226 |
title = info['title']
|
227 |
+
cover = info['cover']
|
228 |
gpt_weight = info['gpt_weight']
|
229 |
sovits_weight = info['sovits_weight']
|
230 |
example_reference = info['example_reference']
|
|
|
263 |
gr.Markdown(
|
264 |
'<div align="center">'
|
265 |
f'<a><strong>{title}</strong></a>'
|
266 |
+
f'<img style="width:auto;height:300px;" src="{cover}">' if cover else ""
|
267 |
+
'</div>')
|
|
|
268 |
with gr.Row():
|
269 |
with gr.Column():
|
270 |
prompt_text = gr.Dropdown(
|
|
|
299 |
fn=tts_fn,
|
300 |
inputs=[inp_ref_audio, prompt_text, prompt_language, text, text_language],
|
301 |
outputs=[om, output],
|
302 |
+
concurrency_limit=2
|
303 |
)
|
304 |
|
305 |
app.queue(max_size=30).launch()
|