import * as fal from "@fal-ai/serverless-client";
const result = await fal.subscribe("fal-ai/cat-vton", {
input: {
human_image_url: "https://me99.in/wp-content/uploads/2023/03/Cotton-Full-Sleeve-Men-Shirt-For-Summer-1.jpg",
garment_image_url: "https://assets.myntassets.com/h_720,q_90,w_540/v1/assets/images/28971488/2024/7/12/d6f2ce64-e7a7-4916-886d-9c3de51ad67c1720763522797-Eteenz-Girls-Tops-2961720763522438-1.jpg",
cloth_type: "upper"
},
logs: true,
onQueueUpdate: (update) => {
if (update.status === "IN_PROGRESS") {
update.logs.map((log) => log.message).forEach(console.log);
}
},
});