Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def tts_fn(text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale):
|
|
78 |
|
79 |
if __name__ == "__main__":
|
80 |
parser = argparse.ArgumentParser()
|
81 |
-
parser.add_argument("-m", "--model", default="./logs/mymodels/
|
82 |
parser.add_argument("-c", "--config", default="./configs/config.json", help="path of your config file")
|
83 |
parser.add_argument("--share", default=False, help="make link public")
|
84 |
parser.add_argument("-d", "--debug", action="store_true", help="enable DEBUG-LEVEL log")
|
@@ -111,9 +111,11 @@ if __name__ == "__main__":
|
|
111 |
使用该模型必须遵守该地区相关法律法规,禁止用其从事任何违法犯罪活动</p>
|
112 |
Bert-vits2项目地址:https://github.com/fishaudio/Bert-VITS2 </p>
|
113 |
欢迎加入QQ交流群: 101442473</p>
|
|
|
|
|
114 |
""")
|
115 |
text = gr.TextArea(label="文本", placeholder="请输入用于转换的文本",
|
116 |
-
value="
|
117 |
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='角色')
|
118 |
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.1, label='SDP/DP混合比')
|
119 |
noise_scale = gr.Slider(minimum=0.1, maximum=2, value=0.6, step=0.1, label='感情调节')
|
@@ -123,7 +125,9 @@ if __name__ == "__main__":
|
|
123 |
with gr.Column():
|
124 |
text_output = gr.Textbox(label="输出日志")
|
125 |
audio_output = gr.Audio(label="输出音频")
|
126 |
-
|
|
|
|
|
127 |
btn.click(tts_fn,
|
128 |
inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
129 |
outputs=[text_output, audio_output])
|
|
|
78 |
|
79 |
if __name__ == "__main__":
|
80 |
parser = argparse.ArgumentParser()
|
81 |
+
parser.add_argument("-m", "--model", default="./logs/mymodels/jiaran.pth", help="path of your model")
|
82 |
parser.add_argument("-c", "--config", default="./configs/config.json", help="path of your config file")
|
83 |
parser.add_argument("--share", default=False, help="make link public")
|
84 |
parser.add_argument("-d", "--debug", action="store_true", help="enable DEBUG-LEVEL log")
|
|
|
111 |
使用该模型必须遵守该地区相关法律法规,禁止用其从事任何违法犯罪活动</p>
|
112 |
Bert-vits2项目地址:https://github.com/fishaudio/Bert-VITS2 </p>
|
113 |
欢迎加入QQ交流群: 101442473</p>
|
114 |
+
声音归属:嘉然今天吃什么 https://space.bilibili.com/672328094\n
|
115 |
+
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
116 |
""")
|
117 |
text = gr.TextArea(label="文本", placeholder="请输入用于转换的文本",
|
118 |
+
value="你好我是嘉然,关注嘉然,顿顿解馋,谢谢!")
|
119 |
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='角色')
|
120 |
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.1, label='SDP/DP混合比')
|
121 |
noise_scale = gr.Slider(minimum=0.1, maximum=2, value=0.6, step=0.1, label='感情调节')
|
|
|
125 |
with gr.Column():
|
126 |
text_output = gr.Textbox(label="输出日志")
|
127 |
audio_output = gr.Audio(label="输出音频")
|
128 |
+
gr.Markdown(value="""
|
129 |
+
【AI胡桃】https://huggingface.co/spaces/zhaokong/Bertvits2
|
130 |
+
""")
|
131 |
btn.click(tts_fn,
|
132 |
inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
133 |
outputs=[text_output, audio_output])
|