Spaces:
Sleeping
Sleeping
Commit
Β·
c99910b
1
Parent(s):
beaf7af
Fix model selection default value
Browse filesFixed model_choice default from "Jenny Voice" to "Jenny" to match the actual key in MODELS dictionary. This resolves the issue where no model was being loaded.
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -222,7 +222,7 @@ with gr.Blocks(title="π΅ Modern Text-to-Speech", theme=gr.themes.Soft(), css="
|
|
| 222 |
# Voice model selection (hidden since only Jenny is available)
|
| 223 |
model_choice = gr.Radio(
|
| 224 |
choices=list(MODELS.keys()),
|
| 225 |
-
value="Jenny
|
| 226 |
label="π€ Voice Model",
|
| 227 |
visible=True # Hide since only one option
|
| 228 |
)
|
|
@@ -248,7 +248,7 @@ with gr.Blocks(title="π΅ Modern Text-to-Speech", theme=gr.themes.Soft(), css="
|
|
| 248 |
)
|
| 249 |
max_new_tokens = gr.Radio(
|
| 250 |
choices=[1200, 2000],
|
| 251 |
-
value=
|
| 252 |
label="π Maximum Length",
|
| 253 |
info="Choose token limit: 1200 (safer, completes sentences) or 2000 (longer, may cut off)"
|
| 254 |
)
|
|
|
|
| 222 |
# Voice model selection (hidden since only Jenny is available)
|
| 223 |
model_choice = gr.Radio(
|
| 224 |
choices=list(MODELS.keys()),
|
| 225 |
+
value="Jenny",
|
| 226 |
label="π€ Voice Model",
|
| 227 |
visible=True # Hide since only one option
|
| 228 |
)
|
|
|
|
| 248 |
)
|
| 249 |
max_new_tokens = gr.Radio(
|
| 250 |
choices=[1200, 2000],
|
| 251 |
+
value=2000,
|
| 252 |
label="π Maximum Length",
|
| 253 |
info="Choose token limit: 1200 (safer, completes sentences) or 2000 (longer, may cut off)"
|
| 254 |
)
|