PierrunoYT Claude commited on
Commit
c99910b
Β·
1 Parent(s): beaf7af

Fix model selection default value

Browse files

Fixed 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>

Files changed (1) hide show
  1. app.py +2 -2
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 Voice",
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=1200,
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
  )