Spaces:
Running
on
Zero
Running
on
Zero
Fix suggestions PR to match the example demo
Browse files
app.py
CHANGED
|
@@ -196,28 +196,28 @@ def build_interface():
|
|
| 196 |
lines=4,
|
| 197 |
max_length=500, # approximately
|
| 198 |
)
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
)
|
| 210 |
speaker_audio = gr.Audio(
|
| 211 |
label="Optional Speaker Audio (for cloning)",
|
| 212 |
type="filepath",
|
| 213 |
)
|
| 214 |
generate_button = gr.Button("Generate Audio")
|
| 215 |
-
|
| 216 |
-
speaker_noised_checkbox = gr.Checkbox(
|
| 217 |
-
label="Denoise Speaker?",
|
| 218 |
-
value=False,
|
| 219 |
-
visible=False
|
| 220 |
-
)
|
| 221 |
with gr.Column():
|
| 222 |
output_audio = gr.Audio(label="Generated Audio", type="numpy", autoplay=True)
|
| 223 |
|
|
|
|
| 196 |
lines=4,
|
| 197 |
max_length=500, # approximately
|
| 198 |
)
|
| 199 |
+
with gr.Row():
|
| 200 |
+
language = gr.Dropdown(
|
| 201 |
+
choices=supported_language_codes,
|
| 202 |
+
value="en-us",
|
| 203 |
+
label="Language",
|
| 204 |
+
)
|
| 205 |
+
model_choice = gr.Dropdown(
|
| 206 |
+
choices=MODEL_NAMES,
|
| 207 |
+
value="Zyphra/Zonos-v0.1-transformer",
|
| 208 |
+
label="Zonos Model Type",
|
| 209 |
+
info="Select the model variant to use.",
|
| 210 |
+
)
|
| 211 |
+
speaker_noised_checkbox = gr.Checkbox(
|
| 212 |
+
label="Denoise Speaker?",
|
| 213 |
+
value=False
|
| 214 |
)
|
| 215 |
speaker_audio = gr.Audio(
|
| 216 |
label="Optional Speaker Audio (for cloning)",
|
| 217 |
type="filepath",
|
| 218 |
)
|
| 219 |
generate_button = gr.Button("Generate Audio")
|
| 220 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
with gr.Column():
|
| 222 |
output_audio = gr.Audio(label="Generated Audio", type="numpy", autoplay=True)
|
| 223 |
|