Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -418,7 +418,7 @@ if __name__ == "__main__":
|
|
418 |
choices=speakers, value=speakers[0], label="Speaker"
|
419 |
)
|
420 |
_ = gr.Markdown(
|
421 |
-
value="提示模式(Prompt mode
|
422 |
)
|
423 |
prompt_mode = gr.Radio(
|
424 |
["Text prompt", "Audio prompt"],
|
@@ -427,8 +427,7 @@ if __name__ == "__main__":
|
|
427 |
)
|
428 |
text_prompt = gr.Textbox(
|
429 |
label="Text prompt",
|
430 |
-
placeholder="
|
431 |
-
value="Happy",
|
432 |
visible=True,
|
433 |
)
|
434 |
audio_prompt = gr.Audio(
|
@@ -449,7 +448,7 @@ if __name__ == "__main__":
|
|
449 |
language = gr.Dropdown(
|
450 |
choices=languages, value=languages[0], label="Language"
|
451 |
)
|
452 |
-
btn = gr.Button("
|
453 |
with gr.Column():
|
454 |
with gr.Row():
|
455 |
with gr.Column():
|
|
|
418 |
choices=speakers, value=speakers[0], label="Speaker"
|
419 |
)
|
420 |
_ = gr.Markdown(
|
421 |
+
value="提示模式(Prompt mode):使用首字母大写英文单词或上传音频提示,用于生成指定风格的声音。\n"
|
422 |
)
|
423 |
prompt_mode = gr.Radio(
|
424 |
["Text prompt", "Audio prompt"],
|
|
|
427 |
)
|
428 |
text_prompt = gr.Textbox(
|
429 |
label="Text prompt",
|
430 |
+
placeholder="单词描述生成风格。如:Happy",
|
|
|
431 |
visible=True,
|
432 |
)
|
433 |
audio_prompt = gr.Audio(
|
|
|
448 |
language = gr.Dropdown(
|
449 |
choices=languages, value=languages[0], label="Language"
|
450 |
)
|
451 |
+
btn = gr.Button("点击生成", variant="primary")
|
452 |
with gr.Column():
|
453 |
with gr.Row():
|
454 |
with gr.Column():
|