Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,13 +122,13 @@ if __name__ == "__main__":
|
|
122 |
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
123 |
""")
|
124 |
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
125 |
-
value="
|
126 |
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
|
127 |
-
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.1, label='SDP/DP混合比')
|
128 |
-
noise_scale = gr.Slider(minimum=0.1, maximum=1
|
129 |
-
noise_scale_w = gr.Slider(minimum=0.1, maximum=1
|
130 |
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='生成长度')
|
131 |
-
btn = gr.Button("
|
132 |
with gr.Column():
|
133 |
text_output = gr.Textbox(label="Message")
|
134 |
audio_output = gr.Audio(label="Output Audio")
|
|
|
122 |
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
123 |
""")
|
124 |
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
125 |
+
value="请在这里输入你想要生成的文本内容")
|
126 |
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
|
127 |
+
sdp_ratio = gr.Slider(minimum=0.1, maximum=1, value=0.2, step=0.1, label='SDP/DP混合比')
|
128 |
+
noise_scale = gr.Slider(minimum=0.1, maximum=1, value=0.5, step=0.1, label='感情调节')
|
129 |
+
noise_scale_w = gr.Slider(minimum=0.1, maximum=1, value=0.9, step=0.1, label='音素长度')
|
130 |
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='生成长度')
|
131 |
+
btn = gr.Button("点击生成!", variant="primary")
|
132 |
with gr.Column():
|
133 |
text_output = gr.Textbox(label="Message")
|
134 |
audio_output = gr.Audio(label="Output Audio")
|