Mahiruoshi commited on
Commit
fab0c98
·
1 Parent(s): 0efd8df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,6 +29,7 @@ class VitsGradio:
29
  with gr.Blocks() as self.Vits:
30
  gr.Markdown(
31
  "## <center> Vits chatbot后端演示,直接在本机上克隆并部署该space即可。搭配前端使用: https://github.com/Arkueid/Live2DMascot\n"
 
32
  "### <center> 我移除了pyopenjtalk,如果合成不了日语就直接摆烂,所以不存在安装困难的情况.运行main.py后直接打开ui界面配置:http://127.0.0.1:7860/\n"
33
  "### <center> 如果有能力,可自行替换text文件夹\n")
34
  with gr.Tab("调试用"):
@@ -65,7 +66,7 @@ class VitsGradio:
65
  self.input2 = gr.Dropdown(label="Language", choices=self.lan, value="自动", interactive=True)
66
  with gr.Column():
67
  btnVC = gr.Button("完成vits TTS端设定")
68
- self.input3 = gr.Dropdown(label="Speaker", choices=list(range(114514)), value=0, interactive=True)
69
  self.input4 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声比例(noise scale),以控制情感", value=0.6)
70
  self.input5 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声偏差(noise scale w),以控制音素长短", value=0.668)
71
  self.input6 = gr.Slider(minimum=0.1, maximum=10, label="duration", value=1)
 
29
  with gr.Blocks() as self.Vits:
30
  gr.Markdown(
31
  "## <center> Vits chatbot后端演示,直接在本机上克隆并部署该space即可。搭配前端使用: https://github.com/Arkueid/Live2DMascot\n"
32
+ "## <center> 使用方法:在控制面板选择tts模型与说话人,并且设置gpt的api key,之后会生成语音合成的api。比如说 127.0.0.1:8080/chat?Text=(你的消息)\n"
33
  "### <center> 我移除了pyopenjtalk,如果合成不了日语就直接摆烂,所以不存在安装困难的情况.运行main.py后直接打开ui界面配置:http://127.0.0.1:7860/\n"
34
  "### <center> 如果有能力,可自行替换text文件夹\n")
35
  with gr.Tab("调试用"):
 
66
  self.input2 = gr.Dropdown(label="Language", choices=self.lan, value="自动", interactive=True)
67
  with gr.Column():
68
  btnVC = gr.Button("完成vits TTS端设定")
69
+ self.input3 = gr.Dropdown(label="Speaker", choices=list(range(114514)), value=1, interactive=True)
70
  self.input4 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声比例(noise scale),以控制情感", value=0.6)
71
  self.input5 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声偏差(noise scale w),以控制音素长短", value=0.668)
72
  self.input6 = gr.Slider(minimum=0.1, maximum=10, label="duration", value=1)