Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ net_g = None
|
|
24 |
models = {
|
25 |
"AdorableDarling": "./MODELS/adorabledarling.pth",
|
26 |
"Silverleg": "./MODELS/silverhandG_4400.pth",
|
27 |
-
"
|
28 |
"Tnikki3400": "./MODELS/Nikki_3400.pth",
|
29 |
"MoonLucidAloof": "./MODELS/G_2900.pth",
|
30 |
"Rrabbitt": "./MODELS/rabbit4900.pth",
|
@@ -119,11 +119,11 @@ if __name__ == "__main__":
|
|
119 |
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
120 |
value="在不在?能不能借给我三百块钱买可乐",
|
121 |
info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500汉字")
|
122 |
-
|
123 |
model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='音声模型')
|
124 |
#model = gr.Dropdown(choices=models,value=models[0], label='音声模型')
|
125 |
speaker = gr.Radio(choices=speakers, value=speakers[0], label='Speaker')
|
126 |
-
gr.Markdown("生成参数,效果玄学")
|
127 |
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='语调变化')
|
128 |
noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.5, step=0.01, label='感情变化')
|
129 |
noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.9, step=0.01, label='音节长度')
|
|
|
24 |
models = {
|
25 |
"AdorableDarling": "./MODELS/adorabledarling.pth",
|
26 |
"Silverleg": "./MODELS/silverhandG_4400.pth",
|
27 |
+
"Tnikki6100": "./MODELS/Nikki_6100.pth",
|
28 |
"Tnikki3400": "./MODELS/Nikki_3400.pth",
|
29 |
"MoonLucidAloof": "./MODELS/G_2900.pth",
|
30 |
"Rrabbitt": "./MODELS/rabbit4900.pth",
|
|
|
119 |
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
120 |
value="在不在?能不能借给我三百块钱买可乐",
|
121 |
info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500汉字")
|
122 |
+
gr.Markdown(value="当前字数:")
|
123 |
model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='音声模型')
|
124 |
#model = gr.Dropdown(choices=models,value=models[0], label='音声模型')
|
125 |
speaker = gr.Radio(choices=speakers, value=speakers[0], label='Speaker')
|
126 |
+
gr.Markdown(value="生成参数,效果玄学")
|
127 |
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='语调变化')
|
128 |
noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.5, step=0.01, label='感情变化')
|
129 |
noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.9, step=0.01, label='音节长度')
|