Spaces:
Build error
Build error
...
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ with app:
|
|
41 |
with gr.TabItem("Basic"):
|
42 |
with gr.Row():
|
43 |
choice_model = gr.Dropdown(
|
44 |
-
choices=character_dict.keys(), label="模型", value=character_dict.values(), visible=False)
|
45 |
|
46 |
with gr.TabItem("Audios"):
|
47 |
|
|
|
41 |
with gr.TabItem("Basic"):
|
42 |
with gr.Row():
|
43 |
choice_model = gr.Dropdown(
|
44 |
+
choices=[character_dict.keys()], label="模型", value=[character_dict.values()], visible=False)
|
45 |
|
46 |
with gr.TabItem("Audios"):
|
47 |
|
test.py
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
|
3 |
-
#from inference import load_model, local_run
|
4 |
-
|
5 |
-
|
6 |
-
pth_path = "model/G_70000.pth"
|
7 |
-
config_json = "configs/config.json"
|
8 |
-
|
9 |
-
app = gr.Blocks()
|
10 |
-
with app:
|
11 |
-
gr.HTML("""
|
12 |
-
<div
|
13 |
-
style="width: 100%;padding-top:116px;background-image: url('https://huggingface.co/spaces/tumuyan/vits-miki/resolve/main/bg.webp');;background-size:cover">
|
14 |
-
<div>
|
15 |
-
<div>
|
16 |
-
<h4 class="h-sign" style="font-size: 12px;">
|
17 |
-
这是一个使用<a href="https://github.com/thesupersonic16/DALTools" target="_blank">thesupersonic16/DALTools</a>提供的解包音频作为数据集,
|
18 |
-
使用<a href="https://github.com/jaywalnut310/vits" target="_blank">VITS</a>技术训练的语音合成demo。
|
19 |
-
</h4>
|
20 |
-
</div>
|
21 |
-
</div>
|
22 |
-
</div>
|
23 |
-
""")
|
24 |
-
tmp = gr.Markdown("")
|
25 |
-
with gr.Tabs():
|
26 |
-
with gr.TabItem("Basic"):
|
27 |
-
|
28 |
-
|
29 |
-
with gr.TabItem("Audios"):
|
30 |
-
pass
|
31 |
-
|
32 |
-
gr.HTML("""
|
33 |
-
<div style="text-align:center">
|
34 |
-
仅供学习交流,不可用于商业或非法用途
|
35 |
-
<br/>
|
36 |
-
使用本项目模型直接或间接生成的音频,必须声明由AI技术或VITS技术合成
|
37 |
-
</div>
|
38 |
-
""")
|
39 |
-
app.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|