Spaces:
Build error
Build error
Mahiruoshi
commited on
Commit
•
594403e
1
Parent(s):
5a41ff3
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def generate_audio(
|
|
76 |
speaker,
|
77 |
language,
|
78 |
):
|
79 |
-
if len(text) < 2:
|
80 |
return
|
81 |
with torch.no_grad():
|
82 |
if language == 'Auto':
|
@@ -238,12 +238,13 @@ if __name__ == "__main__":
|
|
238 |
with gr.Blocks() as app:
|
239 |
gr.Markdown(value="""
|
240 |
少歌邦邦全员在线语音合成(Bert-Vits2)\n
|
241 |
-
|
242 |
声音归属:BangDream及少歌手游\n
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
|
|
247 |
使用本模型请严格遵守法律法规!禁止生成任何有损声优或者企划的内容!!!!!\n
|
248 |
このモデルを使用する際は法律法規を厳守してください!声優や企画に損害を与える内容の生成は禁止です!!!!!\n
|
249 |
Please strictly follow the laws in your country and regulations when using this model! It is prohibited to generate any content that is harmful to others!!!!!\n
|
|
|
76 |
speaker,
|
77 |
language,
|
78 |
):
|
79 |
+
if len(text) < 2||len(text)>100:
|
80 |
return
|
81 |
with torch.no_grad():
|
82 |
if language == 'Auto':
|
|
|
238 |
with gr.Blocks() as app:
|
239 |
gr.Markdown(value="""
|
240 |
少歌邦邦全员在线语音合成(Bert-Vits2)\n
|
241 |
+
二窗请标注作者:B站@[Mahiroshi](https://space.bilibili.com/19874615),如果有问题需要反馈可私信联系\n
|
242 |
声音归属:BangDream及少歌手游\n
|
243 |
+
!!!注意:huggingface容器仅用作展示,建议克隆本项目后本地运行app.py,环境参考requirements.txt\n
|
244 |
+
Bert-vits2[项目](https://github.com/Stardust-minus/Bert-VITS2)本身仍然处于开发过程中,因此稳定性存在一定问题。
|
245 |
+
关于此模型的使用参考: https://nijigaku.top/2023/10/03/BangDreamTTS\n
|
246 |
+
[数据集制作](https://huggingface.co/spaces/Mahiruoshi/BangDream-Bert-VITS2/tree/main/%E7%88%AC%E8%99%AB),
|
247 |
+
[服务器启动示例](https://huggingface.co/spaces/Mahiruoshi/BangDream-Bert-VITS2/blob/main/server.py)\n
|
248 |
使用本模型请严格遵守法律法规!禁止生成任何有损声优或者企划的内容!!!!!\n
|
249 |
このモデルを使用する際は法律法規を厳守してください!声優や企画に損害を与える内容の生成は禁止です!!!!!\n
|
250 |
Please strictly follow the laws in your country and regulations when using this model! It is prohibited to generate any content that is harmful to others!!!!!\n
|