import * as fal from "@fal-ai/serverless-client";
const result = await fal.subscribe("fal-ai/sadtalker/reference", {
input: {
source_image_url: "https://storage.googleapis.com/falserverless/model_tests/sadtalker/anime_girl.png",
driven_audio_url: "https://storage.googleapis.com/falserverless/model_tests/sadtalker/deyu.wav",
reference_pose_video_url: "https://github.com/OpenTalker/SadTalker/raw/main/examples/ref_video/WDA_AlexandriaOcasioCortez_000.mp4"
},
logs: true,
onQueueUpdate: (update) => {
if (update.status === "IN_PROGRESS") {
update.logs.map((log) => log.message).forEach(console.log);
}
},
});