Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Remove a person's page names itself when it isn't available here

Adarshb3411e6abac0
diff --git a/src/components/remove-object/remove-object-tool.tsx b/src/components/remove-object/remove-object-tool.tsx
index 92c918fb..1a1ca063 100644
--- a/src/components/remove-object/remove-object-tool.tsx
+++ b/src/components/remove-object/remove-object-tool.tsx
@@ -248,7 +248,8 @@ export function RemoveObjectTool({ person = false }: { person?: boolean } = {})
: estimate.isError
? (estimate.error as Error).message
: null;
- const blocker = visitor ? "Remove object isn't available here" : setupBlocker;
+ const toolName = personAsked ? "Remove a person" : "Remove object";
+ const blocker = visitor ? `${toolName} isn't available here` : setupBlocker;
const start = () => {
if (blocker || !body) return void toast(blocker ?? "Not ready yet", { id: "remove-blocker" });
@@ -283,7 +284,7 @@ export function RemoveObjectTool({ person = false }: { person?: boolean } = {})
: `Type what goes, click it, or paint over it — the gap is filled frame by frame and the sound stays${visitor ? "." : ", free on your own ComfyUI."}`
}
>
- {visitor && <SelfHostNote className="mt-3 max-w-xl">Remove object isn&apos;t available here.</SelfHostNote>}
+ {visitor && <SelfHostNote className="mt-3 max-w-xl">{toolName} isn&apos;t available here.</SelfHostNote>}
</ToolHero>
)}
<div className={cn("mx-auto", clip ? "pt-4" : "mt-8 max-w-[640px]")}>