mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
communication to fal works, mask is wrong color
This commit is contained in:
1 parent
0bdf79dfe4
commit
4521088453
1 file changed
+12
@@ -8,6 +8,8 @@ import Konva from "konva"; // just for types
|
||||
|
||||
import { setCanvasRenderBitmap } from "../../signals/canvasRenderBitmap"
|
||||
import {
|
||||
EnqueueImageInpaint,
|
||||
EnqueueImageInpaintModel,
|
||||
FalBackgroundRemoval,
|
||||
} from "@storyteller/tauri-api";
|
||||
import { ContextMenuContainer } from "../PageDraw/components/ui/ContextMenu";
|
||||
@@ -270,6 +272,16 @@ const PageEdit = () => {
|
||||
|
||||
console.log(">>> arrayBuffer", arrayBuffer);
|
||||
|
||||
const generateResponse2 = await EnqueueImageInpaint({
|
||||
model: EnqueueImageInpaintModel.FluxPro1,
|
||||
image_media_token: editedImageToken,
|
||||
mask_image_raw_bytes: arrayBuffer,
|
||||
prompt: "red eyes",
|
||||
image_count: 1,
|
||||
});
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
// Display image selector on launch, otherwise hide it
|
||||
|
||||
Reference in new issue
Block a user