Spaces:
Build error
Build error
...
Browse files
app.py
CHANGED
@@ -59,19 +59,19 @@ def infer(c_name, text):
|
|
59 |
pth_path = "model/G_70000.pth"
|
60 |
config_path = "configs/config.json"
|
61 |
character_dict = {
|
62 |
-
"
|
63 |
-
"
|
64 |
-
"
|
65 |
-
"
|
66 |
-
"
|
67 |
-
"
|
68 |
-
"
|
69 |
-
"
|
70 |
-
"
|
71 |
-
"
|
72 |
-
"
|
73 |
-
"
|
74 |
-
"
|
75 |
}
|
76 |
|
77 |
load_model(config_path, pth_path)
|
@@ -84,9 +84,9 @@ with app:
|
|
84 |
label="请输入文本(仅支持日语)", value="こんにちは,世界!")
|
85 |
with gr.Row():
|
86 |
radio = gr.Radio(list(character_dict.keys()),
|
87 |
-
label="
|
88 |
with gr.Row():
|
89 |
-
tts_submit = gr.Button("
|
90 |
with gr.Row():
|
91 |
tts_output = gr.Audio(label="Output")
|
92 |
# model_submit.click(load_model, [config_path, pth_path])
|
|
|
59 |
pth_path = "model/G_70000.pth"
|
60 |
config_path = "configs/config.json"
|
61 |
character_dict = {
|
62 |
+
"夜刀神十香": 1,
|
63 |
+
"鸢一折纸": 2,
|
64 |
+
"时崎狂三": 3,
|
65 |
+
"冰芽川四糸乃": 4,
|
66 |
+
"五河琴里": 5,
|
67 |
+
"八舞夕弦": 6,
|
68 |
+
"八舞耶俱矢": 7,
|
69 |
+
"诱宵美九": 8,
|
70 |
+
"园神凛祢": 9,
|
71 |
+
"园神凛绪": 10,
|
72 |
+
"或守鞠亚": 11,
|
73 |
+
"或守鞠奈": 12,
|
74 |
+
"崇宫真那": 13,
|
75 |
}
|
76 |
|
77 |
load_model(config_path, pth_path)
|
|
|
84 |
label="请输入文本(仅支持日语)", value="こんにちは,世界!")
|
85 |
with gr.Row():
|
86 |
radio = gr.Radio(list(character_dict.keys()),
|
87 |
+
label="请选择角色")
|
88 |
with gr.Row():
|
89 |
+
tts_submit = gr.Button("合成", variant="primary")
|
90 |
with gr.Row():
|
91 |
tts_output = gr.Audio(label="Output")
|
92 |
# model_submit.click(load_model, [config_path, pth_path])
|