Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -96,20 +96,20 @@ with gr.Blocks() as demo:
|
|
96 |
with gr.Column(scale=1):
|
97 |
model_choice = gr.Dropdown(
|
98 |
["CosyVoice2-Yue", "CosyVoice2-Yue-ZoengJyutGaai"],
|
99 |
-
label="
|
100 |
)
|
101 |
-
text_input = gr.Textbox(lines=2, label="
|
102 |
preset_audio = gr.Dropdown(
|
103 |
choices=list(PRESET_AUDIO_OPTIONS.keys()),
|
104 |
value="Custom Upload",
|
105 |
label="Select speaker prompt (CosyVoice2-Yue only)"
|
106 |
)
|
107 |
-
custom_audio = gr.Audio(sources=["upload"], type="filepath", label="
|
108 |
generate_btn = gr.Button("Generate")
|
109 |
|
110 |
with gr.Column(scale=1):
|
111 |
-
output_audio = gr.Audio(type="numpy", label="
|
112 |
-
status_text = gr.Textbox(label="
|
113 |
|
114 |
generate_btn.click(
|
115 |
fn=tts_inference,
|
|
|
96 |
with gr.Column(scale=1):
|
97 |
model_choice = gr.Dropdown(
|
98 |
["CosyVoice2-Yue", "CosyVoice2-Yue-ZoengJyutGaai"],
|
99 |
+
label="Select model", value="CosyVoice2-Yue"
|
100 |
)
|
101 |
+
text_input = gr.Textbox(lines=2, label="Input text")
|
102 |
preset_audio = gr.Dropdown(
|
103 |
choices=list(PRESET_AUDIO_OPTIONS.keys()),
|
104 |
value="Custom Upload",
|
105 |
label="Select speaker prompt (CosyVoice2-Yue only)"
|
106 |
)
|
107 |
+
custom_audio = gr.Audio(sources=["upload"], type="filepath", label="Upload prompt audio(CosyVoice2-Yue only)")
|
108 |
generate_btn = gr.Button("Generate")
|
109 |
|
110 |
with gr.Column(scale=1):
|
111 |
+
output_audio = gr.Audio(type="numpy", label="Generated audio")
|
112 |
+
status_text = gr.Textbox(label="Status")
|
113 |
|
114 |
generate_btn.click(
|
115 |
fn=tts_inference,
|