Add ACE-Step music generation to the studio and library.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,11 +32,13 @@ export default defineEventHandler(async (event) => {
|
||||
const live = listJobs()
|
||||
.filter(job => job.library?.ownerKey === owner && jobLooksLive(job, comfyBusy))
|
||||
.sort((a, b) => b.startedAt - a.startedAt)
|
||||
const videoLive = live.find(job => job.kind !== 'edit')
|
||||
const videoLive = live.find(job => job.kind !== 'edit' && job.kind !== 'music')
|
||||
const editLive = live.find(job => job.kind === 'edit')
|
||||
const musicLive = live.find(job => job.kind === 'music')
|
||||
|
||||
let video = videoLive ? livePayload(videoLive) : null
|
||||
const edit = editLive ? livePayload(editLive) : null
|
||||
const music = musicLive ? livePayload(musicLive) : null
|
||||
|
||||
if (!video) {
|
||||
const pending = listPendingJobs()
|
||||
@@ -70,8 +72,9 @@ export default defineEventHandler(async (event) => {
|
||||
}
|
||||
|
||||
return {
|
||||
jobId: video?.jobId || edit?.jobId || null,
|
||||
jobId: video?.jobId || edit?.jobId || music?.jobId || null,
|
||||
video,
|
||||
edit
|
||||
edit,
|
||||
music
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user