We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2dacb3 commit 27397d9Copy full SHA for 27397d9
app.py
@@ -251,7 +251,7 @@ def run_inference(
251
label="Max New Tokens (Audio Length)",
252
minimum=860,
253
maximum=3072,
254
- value=model.config.data.audio_length, # Use config default if available, else fallback
+ value=model.config.decoder_config.max_position_embeddings, # Use config default if available, else fallback
255
step=50,
256
info="Controls the maximum length of the generated audio (more tokens = longer audio).",
257
)
0 commit comments