Ailyth commited on
Commit
7a7857a
1 Parent(s): 26acab0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -125,11 +125,11 @@ if __name__ == "__main__":
125
  info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500汉字",
126
  )
127
  model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='音声模型')
128
- gr.Markdown(value="生成参数")
129
- sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='语调变化')
130
- noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.5, step=0.01, label='感情变化')
131
- noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.9, step=0.01, label='音节长度')
132
- length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='生成语音总长度')
133
  btn = gr.Button("✨生成", variant="primary")
134
  with gr.Column():
135
  text_output = gr.Textbox(label="Message")
 
125
  info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500汉字",
126
  )
127
  model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='音声模型')
128
+ with gr.Accordion(label="展开生成参数设置", open=False):
129
+ sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='SDP/DP混合比',info='可控制一定程度的语调变化')
130
+ noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.5, step=0.01, label='感情变化')
131
+ noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.9, step=0.01, label='音节长度')
132
+ length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='生成语音总长度',info='数值越大,语速越慢')
133
  btn = gr.Button("✨生成", variant="primary")
134
  with gr.Column():
135
  text_output = gr.Textbox(label="Message")