Spaces:
Running
Running
Commit
•
3e659cb
1
Parent(s):
b19b719
Update app.py
Browse files
app.py
CHANGED
@@ -125,18 +125,22 @@ if __name__ == "__main__":
|
|
125 |
speakers = list(speaker_ids.keys())
|
126 |
with gr.Blocks() as app:
|
127 |
with gr.Row():
|
128 |
-
gr.
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
|
|
|
|
|
|
|
|
140 |
with gr.Row():
|
141 |
with gr.Column():
|
142 |
text = gr.TextArea(label="请输入要提问然然的问题", placeholder="Input Text Here",
|
@@ -153,8 +157,8 @@ if __name__ == "__main__":
|
|
153 |
with gr.Column():
|
154 |
btn = gr.Button("点击生成", variant="primary")
|
155 |
text_output = gr.Textbox(label="获取状态")
|
156 |
-
gpt_output = gr.TextArea(label="
|
157 |
-
audio_output = gr.Audio(label="
|
158 |
btn.click(tts_fn,
|
159 |
inputs=[text, front_text, key, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
160 |
outputs=[text_output, gpt_output, audio_output])
|
|
|
125 |
speakers = list(speaker_ids.keys())
|
126 |
with gr.Blocks() as app:
|
127 |
with gr.Row():
|
128 |
+
with gr.Column():
|
129 |
+
gr.Markdown(value="""
|
130 |
+
![avatar](https://img0.baidu.com/it/u=3803234914,1472318531&fm=253&fmt=auto&app=120&f=PNG?w=500&h=500) \n
|
131 |
+
""")
|
132 |
+
with gr.Column():
|
133 |
+
gr.Markdown(value="""
|
134 |
+
# AI嘉然——在线gpt对话版(Bert-Vits2 + gpt)\n
|
135 |
+
(注:转发生成可能较慢,请等待大约2分钟哦,目前只支持中文语言的答案,其他语言的支持在开发中捏!)\n
|
136 |
+
作者:[Xz乔希](https://space.bilibili.com/5859321) & [碎语碎念](https://space.bilibili.com/4269384) 声音归属:[嘉然今天吃什么](https://space.bilibili.com/672328094) \n
|
137 |
+
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
138 |
+
GPT_API_free项目:https://github.com/chatanywhere/GPT_API_free\n
|
139 |
+
本项目中的apiKey可以从https://github.com/chatanywhere/GPT_API_free\n
|
140 |
+
免费获取(本项目默认提供了一个,如果没法用了去仓库申请替换就好啦)!\n
|
141 |
+
使用本模型请严格遵守法律法规!\n
|
142 |
+
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
143 |
+
""")
|
144 |
with gr.Row():
|
145 |
with gr.Column():
|
146 |
text = gr.TextArea(label="请输入要提问然然的问题", placeholder="Input Text Here",
|
|
|
157 |
with gr.Column():
|
158 |
btn = gr.Button("点击生成", variant="primary")
|
159 |
text_output = gr.Textbox(label="获取状态")
|
160 |
+
gpt_output = gr.TextArea(label="然然老师的文字回答")
|
161 |
+
audio_output = gr.Audio(label="然然老师的语音回答")
|
162 |
btn.click(tts_fn,
|
163 |
inputs=[text, front_text, key, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
164 |
outputs=[text_output, gpt_output, audio_output])
|