Skip to content

Commit

Permalink
more nsfw words
Browse files Browse the repository at this point in the history
Signed-off-by: Jirka Kremser <jiri.kremser@gmail.com>
  • Loading branch information
jkremser committed Jun 20, 2024
1 parent 5f7e0a6 commit 6067571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/stable-diffusion/webui/app/prompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Prompt: React.FC<PromptProps> = ({ sendToQ }) => {
},
});
const safetyCheck = (prompt: string) => {
const stopList = ["boob", "tits", "vagina", "penis", "dick", "naked", "nude", "fuck", "coitus", "sex", "shit", "blood", "murder", "dead"];
const stopList = ["boob", "tits", "vagina", "penis", "dick", "cock", "trump", "naked", "nude", "fuck", "coitus", "sex", "shit", "blood", "murder", "dead"];
return stopList.some(w => prompt.toLowerCase().includes(w));
}

Expand Down

0 comments on commit 6067571

Please sign in to comment.