Spaces:
Runtime error
Runtime error
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,16 +113,16 @@ 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 |
-
【AI
|
120 |
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
121 |
使用本模型请严格遵守法律法规!\n
|
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.01, label='SDP/DP混合比')
|
128 |
noise_scale = gr.Slider(minimum=0.1, maximum=1, value=0.5, step=0.01, label='感情调节')
|
@@ -148,6 +148,7 @@ if __name__ == "__main__":
|
|
148 |
【AI贝拉】https://huggingface.co/spaces/XzJosh/Bella-Bert-VITS2\n
|
149 |
【AI珈乐】https://huggingface.co/spaces/XzJosh/Carol-Bert-VITS2\n
|
150 |
【AI电棍】https://huggingface.co/spaces/XzJosh/otto-Bert-VITS2\n
|
|
|
151 |
""")
|
152 |
btn.click(tts_fn,
|
153 |
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/Echo/G_3100.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 |
+
声音归属:黑桃影 https://space.bilibili.com/456368455\n
|
119 |
+
【AI黑桃影②】https://huggingface.co/spaces/XzJosh/Bekki-Bert-VITS2\n
|
120 |
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
121 |
使用本模型请严格遵守法律法规!\n
|
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.01, label='SDP/DP混合比')
|
128 |
noise_scale = gr.Slider(minimum=0.1, maximum=1, value=0.5, step=0.01, label='感情调节')
|
|
|
148 |
【AI贝拉】https://huggingface.co/spaces/XzJosh/Bella-Bert-VITS2\n
|
149 |
【AI珈乐】https://huggingface.co/spaces/XzJosh/Carol-Bert-VITS2\n
|
150 |
【AI电棍】https://huggingface.co/spaces/XzJosh/otto-Bert-VITS2\n
|
151 |
+
【AI恬豆】https://huggingface.co/spaces/XzJosh/Bekki-Bert-VITS2\n
|
152 |
""")
|
153 |
btn.click(tts_fn,
|
154 |
inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|