Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zcpua committed Jul 14, 2023
1 parent 974ea58 commit 7292c7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/faceswap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "dotenv/config";
import { Midjourney, detectBannedWords } from "../src";
import { url } from "inspector";
/**
*
* a simple example of how to use faceSwap
Expand All @@ -18,9 +19,8 @@ async function main() {
Debug: true,
HuggingFaceToken: <string>process.env.HUGGINGFACE_TOKEN,
});

const info = await client.FaceSwap(target, source);
console.log(info);
console.log(info?.uri);
}
main()
.then(() => {
Expand Down
3 changes: 1 addition & 2 deletions src/midjourney.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,7 @@ export class Midjourney extends MidjourneyMessage {
if (httpStatus !== 204) {
throw new Error(`DescribeApi failed with status ${httpStatus}`);
}
const describe = await wsClient.waitDescribe(nonce);
return describe?.uri;
return wsClient.waitDescribe(nonce);
}

Close() {
Expand Down

0 comments on commit 7292c7f

Please sign in to comment.