Tighten YuE lyrics validation and Comfy music workflow wiring.

Require section tags before queueing YuE and keep the ACE/YuE path changes that were already in progress.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-03 20:32:41 -05:00
co-authored by Cursor
parent 47f14d7be2
commit 17d4d4ffdc
8 changed files with 114 additions and 29 deletions
+10
View File
@@ -195,6 +195,16 @@ export async function interruptComfy() {
return Boolean(res?.ok)
}
/** Ask Comfy to drop cached models so a heavy YuE job starts with a clean 16GB card. */
export async function freeComfyVram() {
await comfyFetch('/free', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ unload_models: true, free_memory: true }),
signal: AbortSignal.timeout(15000)
}).catch(() => null)
}
export async function fetchHistory(promptId: string) {
const res = await comfyFetch(`/history/${encodeURIComponent(promptId)}`)
if (!res.ok) return null