diff --git a/example/describe.ts b/example/describe.ts index 04dce11..eccc24a 100644 --- a/example/describe.ts +++ b/example/describe.ts @@ -20,6 +20,17 @@ async function main() { "https://cdn.discordapp.com/attachments/1107965981839605792/1119977411631652914/Soga_a_cool_cat_blue_ears_yellow_hat_02afd1ed-17eb-4a61-9101-7a99b105e4cc.png" ); console.log(Describe); + if (!Describe) { + console.log("failed to describe"); + } + const prompt = Describe?.descriptions[0] as string; + const imagine = await client.Imagine( + prompt, + (uri: string, progress: string) => { + console.log("Imagine.loading", uri, "progress", progress); + } + ); + console.log(imagine); client.Close(); } main().catch((err) => {