Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def tts_fn(text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale):
|
|
75 |
|
76 |
if __name__ == "__main__":
|
77 |
parser = argparse.ArgumentParser()
|
78 |
-
parser.add_argument("--model_dir", default="./logs/
|
79 |
parser.add_argument("--config_dir", default="./configs/config.json", help="path of your config file")
|
80 |
parser.add_argument("--share", default=False, help="make link public")
|
81 |
parser.add_argument("-d", "--debug", action="store_true", help="enable DEBUG-LEVEL log")
|
@@ -113,17 +113,15 @@ if __name__ == "__main__":
|
|
113 |
with gr.Row():
|
114 |
with gr.Column():
|
115 |
gr.Markdown(value="""
|
116 |
-
【AI
|
117 |
作者:Xz乔希 https://space.bilibili.com/5859321\n
|
118 |
-
|
119 |
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
120 |
-
【AI剑魔①】https://huggingface.co/spaces/XzJosh/Aatrox-Bert-VITS2\n
|
121 |
-
【AI剑魔②】https://huggingface.co/spaces/XzJosh/Jianmo-Bert-VITS2\n
|
122 |
使用本模型请严格遵守法律法规!\n
|
123 |
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
124 |
""")
|
125 |
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
126 |
-
value="
|
127 |
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
|
128 |
sdp_ratio = gr.Slider(minimum=0.1, maximum=1, value=0.2, step=0.01, label='SDP/DP混合比')
|
129 |
noise_scale = gr.Slider(minimum=0.1, maximum=1, value=0.5, step=0.01, label='感情调节')
|
@@ -145,6 +143,7 @@ if __name__ == "__main__":
|
|
145 |
【AI星瞳】https://huggingface.co/spaces/XzJosh/XingTong-Bert-VITS2\n
|
146 |
【AI向晚】https://huggingface.co/spaces/XzJosh/Ava-Bert-VITS2\n
|
147 |
【AI嘉然】https://huggingface.co/spaces/XzJosh/Diana-Bert-VITS2\n
|
|
|
148 |
""")
|
149 |
btn.click(tts_fn,
|
150 |
inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
|
|
75 |
|
76 |
if __name__ == "__main__":
|
77 |
parser = argparse.ArgumentParser()
|
78 |
+
parser.add_argument("--model_dir", default="./logs/Eileen/G_4100.pth", help="path of your model")
|
79 |
parser.add_argument("--config_dir", default="./configs/config.json", help="path of your config file")
|
80 |
parser.add_argument("--share", default=False, help="make link public")
|
81 |
parser.add_argument("-d", "--debug", action="store_true", help="enable DEBUG-LEVEL log")
|
|
|
113 |
with gr.Row():
|
114 |
with gr.Column():
|
115 |
gr.Markdown(value="""
|
116 |
+
【AI乃琳】在线语音合成(Bert-Vits2)\n
|
117 |
作者:Xz乔希 https://space.bilibili.com/5859321\n
|
118 |
+
声音归属:乃琳Queen https://space.bilibili.com/672342685\n
|
119 |
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
|
|
|
|
120 |
使用本模型请严格遵守法律法规!\n
|
121 |
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
122 |
""")
|
123 |
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
124 |
+
value="大家好,我是诶嗖的乃琳艾琳哟,东嘎西嘎哈密嘎,关注乃琳谢谢嘎")
|
125 |
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
|
126 |
sdp_ratio = gr.Slider(minimum=0.1, maximum=1, value=0.2, step=0.01, label='SDP/DP混合比')
|
127 |
noise_scale = gr.Slider(minimum=0.1, maximum=1, value=0.5, step=0.01, label='感情调节')
|
|
|
143 |
【AI星瞳】https://huggingface.co/spaces/XzJosh/XingTong-Bert-VITS2\n
|
144 |
【AI向晚】https://huggingface.co/spaces/XzJosh/Ava-Bert-VITS2\n
|
145 |
【AI嘉然】https://huggingface.co/spaces/XzJosh/Diana-Bert-VITS2\n
|
146 |
+
【AI剑魔】https://huggingface.co/spaces/XzJosh/Aatrox-Bert-VITS2\n
|
147 |
""")
|
148 |
btn.click(tts_fn,
|
149 |
inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|