Skip to content

Commit

Permalink
Merge pull request #33 from jkremser/more-nsfw-words
Browse files Browse the repository at this point in the history
more nsfw words
  • Loading branch information
jkremser authored Jun 20, 2024
2 parents 73a2931 + 6067571 commit aa551b8
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 aa551b8

Please sign in to comment.