Spaces:
Running
Running
admin
commited on
Commit
·
2b226de
1
Parent(s):
ad66b8c
sync ms
Browse files
app.py
CHANGED
@@ -212,9 +212,16 @@ if __name__ == "__main__":
|
|
212 |
gr.Markdown(
|
213 |
_L(
|
214 |
"""
|
215 |
-
欢迎使用此创空间,此创空间基于 <a href="https://github.com/fishaudio/Bert-VITS2">Bert-vits2</a>
|
216 |
)
|
217 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
|
219 |
with gr.Tab(_L("输入模式")):
|
220 |
gr.Interface(
|
@@ -306,11 +313,4 @@ if __name__ == "__main__":
|
|
306 |
concurrency_limit=4,
|
307 |
)
|
308 |
|
309 |
-
gr.HTML(
|
310 |
-
"""
|
311 |
-
<iframe src="//player.bilibili.com/player.html?bvid=BV1hergYRENX&p=2&autoplay=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="100%" style="aspect-ratio: 16 / 9;">
|
312 |
-
</iframe>
|
313 |
-
"""
|
314 |
-
)
|
315 |
-
|
316 |
app.launch()
|
|
|
212 |
gr.Markdown(
|
213 |
_L(
|
214 |
"""
|
215 |
+
欢迎使用此创空间,此创空间基于 <a href="https://github.com/fishaudio/Bert-VITS2">Bert-vits2</a> 开源项目制作。使用此创空间必须遵守当地相关法律法规,禁止用其从事任何违法犯罪活动。"""
|
216 |
)
|
217 |
)
|
218 |
+
with gr.Accordion(label=_L("原理浅讲"), open=False):
|
219 |
+
gr.HTML(
|
220 |
+
"""
|
221 |
+
<iframe src="//player.bilibili.com/player.html?bvid=BV1hergYRENX&p=2&autoplay=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="100%" style="aspect-ratio: 16 / 9;">
|
222 |
+
</iframe>
|
223 |
+
"""
|
224 |
+
)
|
225 |
|
226 |
with gr.Tab(_L("输入模式")):
|
227 |
gr.Interface(
|
|
|
313 |
concurrency_limit=4,
|
314 |
)
|
315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
app.launch()
|
utils.py
CHANGED
@@ -17,6 +17,7 @@ MATPLOTLIB_FLAG = False
|
|
17 |
logger = logging.getLogger(__name__)
|
18 |
EN_US = os.getenv("LANG") != "zh_CN.UTF-8"
|
19 |
ZH2EN = {
|
|
|
20 |
"输入模式": "Input Mode",
|
21 |
"请输入简体中文文案": "Please input the Simplified Chinese text",
|
22 |
"首次推理需耗时下载模型,还请耐心等待。": "The first inference takes time to download the model, so be patient.",
|
@@ -31,8 +32,8 @@ ZH2EN = {
|
|
31 |
"请上传简体中文 TXT 文案": "Please upload a simplified Chinese TXT",
|
32 |
"文案提取结果": "Result of TXT extraction",
|
33 |
"""
|
34 |
-
欢迎使用此创空间,此创空间基于 <a href="https://github.com/fishaudio/Bert-VITS2">Bert-vits2</a>
|
35 |
-
Welcome to the Space, which is based on the open source project <a href="https://github.com/fishaudio/Bert-VITS2">Bert-vits2</a
|
36 |
}
|
37 |
|
38 |
MODEL_DIR = (
|
|
|
17 |
logger = logging.getLogger(__name__)
|
18 |
EN_US = os.getenv("LANG") != "zh_CN.UTF-8"
|
19 |
ZH2EN = {
|
20 |
+
"原理浅讲": "Principle explanation",
|
21 |
"输入模式": "Input Mode",
|
22 |
"请输入简体中文文案": "Please input the Simplified Chinese text",
|
23 |
"首次推理需耗时下载模型,还请耐心等待。": "The first inference takes time to download the model, so be patient.",
|
|
|
32 |
"请上传简体中文 TXT 文案": "Please upload a simplified Chinese TXT",
|
33 |
"文案提取结果": "Result of TXT extraction",
|
34 |
"""
|
35 |
+
欢迎使用此创空间,此创空间基于 <a href="https://github.com/fishaudio/Bert-VITS2">Bert-vits2</a> 开源项目制作。使用此创空间必须遵守当地相关法律法规,禁止用其从事任何违法犯罪活动。""": """
|
36 |
+
Welcome to the Space, which is based on the open source project <a href="https://github.com/fishaudio/Bert-VITS2">Bert-vits2</a>. This Space must be used in accordance with local laws and regulations, prohibiting the use of it for any criminal activities.""",
|
37 |
}
|
38 |
|
39 |
MODEL_DIR = (
|