diff --git a/packages/app/src/app/api/resolve/providers/replicate/runLipSync.ts b/packages/app/src/app/api/resolve/providers/replicate/runLipSync.ts index 59bd17e8..3a4ddfeb 100644 --- a/packages/app/src/app/api/resolve/providers/replicate/runLipSync.ts +++ b/packages/app/src/app/api/resolve/providers/replicate/runLipSync.ts @@ -59,29 +59,30 @@ export async function runLipSync( } try { - // console.log(`requested model:`, request.settings.videoLipsyncWorkflow.data) const response = (await replicate.run( request.settings.videoLipsyncWorkflow.data as any, { - input: - // TODO @julian: I'm not a fan of those hard-coded if/else - // we should read the params from the workflow parameters instead - request.settings.videoLipsyncWorkflow.id === 'replicate://douwantech/musetalk' - ? { - video_input: segment.assetUrl, - audio_input: firstDialogueAudio, - - disable_safety_checker: - !request.settings.censorNotForAllAudiencesContent, - } : { - // note: this is actually a VIDEO (they call it face, but it's a face video) - face: segment.assetUrl, - input_audio: firstDialogueAudio, - - disable_safety_checker: - !request.settings.censorNotForAllAudiencesContent, - }, + input: + // TODO @julian: I'm not a fan of those hard-coded if/else + // we should read the params from the workflow parameters instead + request.settings.videoLipsyncWorkflow.id === + 'replicate://douwantech/musetalk' + ? { + video_input: segment.assetUrl, + audio_input: firstDialogueAudio, + + disable_safety_checker: + !request.settings.censorNotForAllAudiencesContent, + } + : { + // note: this is actually a VIDEO (they call it face, but it's a face video) + face: segment.assetUrl, + input_audio: firstDialogueAudio, + + disable_safety_checker: + !request.settings.censorNotForAllAudiencesContent, + }, } )) as any