Spaces:
Sleeping
Sleeping
CrawfordZhou
commited on
Commit
•
a4954f8
1
Parent(s):
96b37ec
Update app.py
Browse files
app.py
CHANGED
@@ -238,19 +238,20 @@ if __name__ == "__main__":
|
|
238 |
speakers = list(speaker_ids.keys())
|
239 |
languages = ["ZH", "JP", "EN", "auto", "mix"]
|
240 |
with gr.Blocks() as app:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
with gr.Row():
|
242 |
with gr.Column():
|
243 |
-
gr.Markdown(value="""
|
244 |
-
#【AI星瞳——gpt对话版】在线语音合成(Bert-Vits2 2.0中日英)\n
|
245 |
-
![avatar](https://img1.baidu.com/it/u=381691319,2894195285&fm=253&fmt=auto&app=138&f=JPEG?w=400&h=300)\n
|
246 |
-
作者:[Xz乔希](https://space.bilibili.com/5859321) 集成作者:[碎语碎念](https://space.bilibili.com/4269384) 声音归属:[星瞳_Official](https://space.bilibili.com/401315430) \n
|
247 |
-
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
248 |
-
GPT_API_free项目:https://github.com/chatanywhere/GPT_API_free\n
|
249 |
-
本项目中的apiKey可以从https://github.com/chatanywhere/GPT_API_free\n
|
250 |
-
免费获取(本项目默认提供了一个,如果没法用了去仓库申请替换就好啦)!\n
|
251 |
-
使用本模型请严格遵守法律法规!\n
|
252 |
-
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
253 |
-
""")
|
254 |
text = gr.TextArea(
|
255 |
label="请输入要向星瞳老师提问的问题",
|
256 |
placeholder="""
|
@@ -280,10 +281,10 @@ if __name__ == "__main__":
|
|
280 |
language = gr.Dropdown(
|
281 |
choices=languages, value=languages[0], label="选择语言"
|
282 |
)
|
283 |
-
btn = gr.Button("点击生成", variant="primary")
|
284 |
with gr.Column():
|
285 |
with gr.Row():
|
286 |
with gr.Column():
|
|
|
287 |
interval_between_sent = gr.Slider(
|
288 |
minimum=0,
|
289 |
maximum=5,
|
@@ -303,8 +304,8 @@ if __name__ == "__main__":
|
|
303 |
)
|
304 |
slicer = gr.Button("切分生成", variant="primary")
|
305 |
text_output = gr.Textbox(label="状态信息")
|
306 |
-
gpt_output = gr.TextArea(label="
|
307 |
-
audio_output = gr.Audio(label="
|
308 |
# explain_image = gr.Image(
|
309 |
# label="参数解释信息",
|
310 |
# show_label=True,
|
|
|
238 |
speakers = list(speaker_ids.keys())
|
239 |
languages = ["ZH", "JP", "EN", "auto", "mix"]
|
240 |
with gr.Blocks() as app:
|
241 |
+
with gr.Row():
|
242 |
+
gr.Markdown(value="""
|
243 |
+
#【AI星瞳——gpt对话版】在线语音合成(Bert-Vits2 2.0中日英)\n
|
244 |
+
![avatar](https://img1.baidu.com/it/u=381691319,2894195285&fm=253&fmt=auto&app=138&f=JPEG?w=400&h=300)\n
|
245 |
+
作者:[Xz乔希](https://space.bilibili.com/5859321) 集成作者:[碎语碎念](https://space.bilibili.com/4269384) 声音归属:[星瞳_Official](https://space.bilibili.com/401315430) \n
|
246 |
+
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
247 |
+
GPT_API_free项目:https://github.com/chatanywhere/GPT_API_free\n
|
248 |
+
本项目中的apiKey可以从https://github.com/chatanywhere/GPT_API_free\n
|
249 |
+
免费获取(本项目默认提供了一个,如果没法用了去仓库申请替换就好啦)!\n
|
250 |
+
使用本模型请严格遵守法律法规!\n
|
251 |
+
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
252 |
+
""")
|
253 |
with gr.Row():
|
254 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
text = gr.TextArea(
|
256 |
label="请输入要向星瞳老师提问的问题",
|
257 |
placeholder="""
|
|
|
281 |
language = gr.Dropdown(
|
282 |
choices=languages, value=languages[0], label="选择语言"
|
283 |
)
|
|
|
284 |
with gr.Column():
|
285 |
with gr.Row():
|
286 |
with gr.Column():
|
287 |
+
btn = gr.Button("点击生成", variant="primary")
|
288 |
interval_between_sent = gr.Slider(
|
289 |
minimum=0,
|
290 |
maximum=5,
|
|
|
304 |
)
|
305 |
slicer = gr.Button("切分生成", variant="primary")
|
306 |
text_output = gr.Textbox(label="状态信息")
|
307 |
+
gpt_output = gr.TextArea(label="星瞳老师的文字答案")
|
308 |
+
audio_output = gr.Audio(label="星瞳老师的语音答案")
|
309 |
# explain_image = gr.Image(
|
310 |
# label="参数解释信息",
|
311 |
# show_label=True,
|