Fix Gradio args for ACE-Step v1.5 API
This commit is contained in:
@@ -163,38 +163,41 @@ async function buildGradioArgs(params: GenerationParams): Promise<unknown[]> {
|
|||||||
params.repaintingStart ?? 0.0, // 15: Repainting Start
|
params.repaintingStart ?? 0.0, // 15: Repainting Start
|
||||||
params.repaintingEnd ?? -1, // 16: Repainting End
|
params.repaintingEnd ?? -1, // 16: Repainting End
|
||||||
params.instruction || 'Fill the audio semantic mask with the style described in the text prompt.', // 17: Instruction
|
params.instruction || 'Fill the audio semantic mask with the style described in the text prompt.', // 17: Instruction
|
||||||
params.audioCoverStrength ?? 1.0, // 18: LM Codes Strength
|
params.audioCoverStrength ?? 1.0, // 18: Audio Cover Strength
|
||||||
params.taskType || 'text2music', // 19: Task Type
|
0.0, // 19: Cover Noise Strength (ACE-Step v1.5 new param, default 0.0)
|
||||||
params.useAdg ?? false, // 20: Use ADG
|
params.taskType || 'text2music', // 20: Task Type
|
||||||
params.cfgIntervalStart ?? 0.0, // 21: CFG Interval Start
|
params.useAdg ?? false, // 21: Use ADG
|
||||||
params.cfgIntervalEnd ?? 1.0, // 22: CFG Interval End
|
params.cfgIntervalStart ?? 0.0, // 22: CFG Interval Start
|
||||||
params.shift ?? 3.0, // 23: Shift
|
params.cfgIntervalEnd ?? 1.0, // 23: CFG Interval End
|
||||||
params.inferMethod || 'ode', // 24: Inference Method
|
params.shift ?? 3.0, // 24: Shift
|
||||||
params.customTimesteps || '', // 25: Custom Timesteps
|
params.inferMethod || 'ode', // 25: Inference Method
|
||||||
params.audioFormat || 'mp3', // 26: Audio Format
|
params.customTimesteps || '', // 26: Custom Timesteps
|
||||||
params.lmTemperature ?? 0.85, // 27: LM Temperature
|
params.audioFormat || 'mp3', // 27: Audio Format
|
||||||
isThinking, // 28: Think
|
params.lmTemperature ?? 0.85, // 28: LM Temperature
|
||||||
params.lmCfgScale ?? 2.0, // 29: LM CFG Scale
|
isThinking, // 29: Think
|
||||||
params.lmTopK ?? 0, // 30: LM Top-K
|
params.lmCfgScale ?? 2.0, // 30: LM CFG Scale
|
||||||
params.lmTopP ?? 0.9, // 31: LM Top-P
|
params.lmTopK ?? 0, // 31: LM Top-K
|
||||||
params.lmNegativePrompt || 'NO USER INPUT', // 32: LM Negative Prompt
|
params.lmTopP ?? 0.9, // 32: LM Top-P
|
||||||
useCot ? (params.useCotMetas ?? true) : false, // 33: CoT Metas
|
params.lmNegativePrompt || 'NO USER INPUT', // 33: LM Negative Prompt
|
||||||
useCot ? (params.useCotCaption ?? true) : false, // 34: CaptionRewrite
|
useCot ? (params.useCotMetas ?? true) : false, // 34: CoT Metas
|
||||||
useCot ? (params.useCotLanguage ?? true) : false, // 35: CoT Language
|
useCot ? (params.useCotCaption ?? true) : false, // 35: CaptionRewrite
|
||||||
params.isFormatCaption ?? false, // 36: Is Format Caption State
|
useCot ? (params.useCotLanguage ?? true) : false, // 36: CoT Language
|
||||||
params.constrainedDecodingDebug ?? false, // 37: Constrained Decoding Debug
|
params.isFormatCaption ?? false, // 37: Is Format Caption State
|
||||||
params.allowLmBatch ?? true, // 38: ParallelThinking
|
params.constrainedDecodingDebug ?? false, // 38: Constrained Decoding Debug
|
||||||
params.getScores ?? false, // 39: Auto Score
|
params.allowLmBatch ?? true, // 39: ParallelThinking
|
||||||
params.getLrc ?? false, // 40: Auto LRC
|
params.getScores ?? false, // 40: Auto Score
|
||||||
params.scoreScale ?? 0.5, // 41: Quality Score Sensitivity
|
// Note: auto_lrc (getLrc) is a hidden Gradio state param — NOT included in the public API args
|
||||||
|
params.scoreScale ?? 0.5, // 41: Quality Score Sensitivity (0.01-1.0)
|
||||||
params.lmBatchChunkSize ?? 8, // 42: LM Batch Chunk Size
|
params.lmBatchChunkSize ?? 8, // 42: LM Batch Chunk Size
|
||||||
params.trackName || null, // 43: Track Name
|
params.trackName || null, // 43: Track Name
|
||||||
params.completeTrackClasses || [], // 44: Track Names
|
params.completeTrackClasses || [], // 44: Track Names
|
||||||
params.autogen ?? false, // 45: AutoGen
|
false, // 45: Enable Normalization (ACE-Step v1.5 new param, default false)
|
||||||
0, // 46: Current Batch Index
|
0.0, // 46: Normalization DB (ACE-Step v1.5 new param, default 0.0)
|
||||||
1, // 47: Total Batches
|
0.0, // 47: Latent Shift (ACE-Step v1.5 new param, default 0.0)
|
||||||
[], // 48: Batch Queue
|
1.0, // 48: Latent Rescale (ACE-Step v1.5 new param, default 1.0)
|
||||||
{}, // 49: Generation Params State
|
params.autogen ?? false, // 49: AutoGen (visible last param)
|
||||||
|
// Note: current_batch_index, total_batches, batch_queue, generation_params_state
|
||||||
|
// are hidden Gradio state variables and must NOT be passed via client.predict()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user