Spaces:
Runtime error
Runtime error
「わ」→「は」
#2
by
soiz
- opened
app.py
CHANGED
@@ -82,14 +82,14 @@ app = gr.Blocks()
|
|
82 |
with app:
|
83 |
with gr.Tabs():
|
84 |
with gr.TabItem("使用预制情感合成"):
|
85 |
-
tts_input1 = gr.TextArea(label="日语文本", value="
|
86 |
tts_input2 = gr.Dropdown(label="情感", choices=list(emotion_dict.keys()), value="平静1")
|
87 |
tts_submit = gr.Button("合成音频", variant="primary")
|
88 |
tts_output1 = gr.Textbox(label="Message")
|
89 |
tts_output2 = gr.Audio(label="Output")
|
90 |
tts_submit.click(tts1, [tts_input1, tts_input2], [tts_output1, tts_output2])
|
91 |
with gr.TabItem("随机抽取训练集样本作为情感参数"):
|
92 |
-
tts_input1 = gr.TextArea(label="日语文本", value="
|
93 |
tts_submit = gr.Button("合成音频", variant="primary")
|
94 |
tts_output1 = gr.Textbox(label="随机样本id(可用于第三个tab中合成)")
|
95 |
tts_output2 = gr.Audio(label="Output")
|
@@ -97,7 +97,7 @@ with app:
|
|
97 |
|
98 |
with gr.TabItem("使用情感样本id作为情感参数"):
|
99 |
|
100 |
-
tts_input1 = gr.TextArea(label="日语文本", value="
|
101 |
tts_input2 = gr.Number(label="情感样本id", value=2004)
|
102 |
tts_submit = gr.Button("合成音频", variant="primary")
|
103 |
tts_output1 = gr.Textbox(label="Message")
|
|
|
82 |
with app:
|
83 |
with gr.Tabs():
|
84 |
with gr.TabItem("使用预制情感合成"):
|
85 |
+
tts_input1 = gr.TextArea(label="日语文本", value="こんにちは。私はあやちねねです。")
|
86 |
tts_input2 = gr.Dropdown(label="情感", choices=list(emotion_dict.keys()), value="平静1")
|
87 |
tts_submit = gr.Button("合成音频", variant="primary")
|
88 |
tts_output1 = gr.Textbox(label="Message")
|
89 |
tts_output2 = gr.Audio(label="Output")
|
90 |
tts_submit.click(tts1, [tts_input1, tts_input2], [tts_output1, tts_output2])
|
91 |
with gr.TabItem("随机抽取训练集样本作为情感参数"):
|
92 |
+
tts_input1 = gr.TextArea(label="日语文本", value="こんにちは。私はあやちねねです。")
|
93 |
tts_submit = gr.Button("合成音频", variant="primary")
|
94 |
tts_output1 = gr.Textbox(label="随机样本id(可用于第三个tab中合成)")
|
95 |
tts_output2 = gr.Audio(label="Output")
|
|
|
97 |
|
98 |
with gr.TabItem("使用情感样本id作为情感参数"):
|
99 |
|
100 |
+
tts_input1 = gr.TextArea(label="日语文本", value="こんにちは。私はあやちねねです。")
|
101 |
tts_input2 = gr.Number(label="情感样本id", value=2004)
|
102 |
tts_submit = gr.Button("合成音频", variant="primary")
|
103 |
tts_output1 = gr.Textbox(label="Message")
|