Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbilcke-hf committed Sep 11, 2024
1 parent 767ac3e commit c0ef9f4
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,22 @@ 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: {
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,
Expand Down

0 comments on commit c0ef9f4

Please sign in to comment.