Skip to content

Commit

Permalink
update describe example
Browse files Browse the repository at this point in the history
  • Loading branch information
zcpua committed Jul 13, 2023
1 parent 71481f6 commit 81f9b2b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions example/describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 81f9b2b

Please sign in to comment.