Crawford.Zhou commited on
Commit
67c0171
1 Parent(s): 7be2e7a

添加gpt问答接口

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -127,20 +127,21 @@ if __name__ == "__main__":
127
  with gr.Row():
128
  with gr.Column():
129
  gr.Markdown(value="""
130
- 【AI嘉然①】在线语音对话版(Bert-Vits2 + gpt)\n
131
  音声作者:Xz乔希 https://space.bilibili.com/5859321\n
132
- 集成作者:碎语碎念 https://space.bilibili.com/4269384\n
133
  声音归属:嘉然今天吃什么 https://space.bilibili.com/672328094\n
134
  Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
135
  GPT_API_free项目:https://github.com/chatanywhere/GPT_API_free\n
136
- 本项目中的apiKey可以免费从https://github.com/chatanywhere/GPT_API_free获取,参考项目文档即可!\n
 
137
  使用本模型请严格遵守法律法规!\n
138
  发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
139
  """)
140
  text = gr.TextArea(label="Text", placeholder="Input Text Here",
141
  value="虚拟主播是什么?")
142
- key = gr.TextArea(label="Key", placeholder="请输入上面提示中获取的gpt key",
143
- value="key")
144
  speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
145
  sdp_ratio = gr.Slider(minimum=0.1, maximum=1, value=0.2, step=0.01, label='SDP/DP混合比')
146
  noise_scale = gr.Slider(minimum=0.1, maximum=1, value=0.5, step=0.01, label='感情调节')
 
127
  with gr.Row():
128
  with gr.Column():
129
  gr.Markdown(value="""
130
+ 【AI嘉】在线语音对话版(Bert-Vits2 + gpt)\n
131
  音声作者:Xz乔希 https://space.bilibili.com/5859321\n
132
+ 集成gpt作者:碎语碎念 https://space.bilibili.com/4269384\n
133
  声音归属:嘉然今天吃什么 https://space.bilibili.com/672328094\n
134
  Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
135
  GPT_API_free项目:https://github.com/chatanywhere/GPT_API_free\n
136
+ 本项目中的apiKey可以从https://github.com/chatanywhere/GPT_API_free\n
137
+ 免费获取(本项目默认提供了一个,如果没法用了去仓库申请替换就好啦)!\n
138
  使用本模型请严格遵守法律法规!\n
139
  发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
140
  """)
141
  text = gr.TextArea(label="Text", placeholder="Input Text Here",
142
  value="虚拟主播是什么?")
143
+ key = gr.TextArea(label="GPT Key", placeholder="请输入上面提示中获取的gpt key",
144
+ value="izlrijShDu7tp2rIgvYfibcC2J0Eh3uWfdm9ndrxN5nWrL96")
145
  speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
146
  sdp_ratio = gr.Slider(minimum=0.1, maximum=1, value=0.2, step=0.01, label='SDP/DP混合比')
147
  noise_scale = gr.Slider(minimum=0.1, maximum=1, value=0.5, step=0.01, label='感情调节')