Spaces:
Running
on
Zero
Running
on
Zero
fix
Browse files
app.py
CHANGED
|
@@ -252,7 +252,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 252 |
label="Max New Tokens (Audio Length)",
|
| 253 |
minimum=860,
|
| 254 |
maximum=3072,
|
| 255 |
-
value=model.config.
|
| 256 |
step=50,
|
| 257 |
info="Controls the maximum length of the generated audio (more tokens = longer audio).",
|
| 258 |
)
|
|
|
|
| 252 |
label="Max New Tokens (Audio Length)",
|
| 253 |
minimum=860,
|
| 254 |
maximum=3072,
|
| 255 |
+
value=model.config.decoder_config.max_position_embeddings, # Use config default if available, else fallback
|
| 256 |
step=50,
|
| 257 |
info="Controls the maximum length of the generated audio (more tokens = longer audio).",
|
| 258 |
)
|