ComfyUI Node
Sensitive Word Filter 👻
This node filters sensitive words from the given prompt and replaces them with random words from a provided list. Inputs: - `prompt`: The text prompt in which you want to filter words. - `sensitive_words`: A comma-separated list of sensitive words to be filtered. - `replacement_word_list`: A comma-separated list of words to replace the sensitive words. Each sensitive word is replaced with a random word from this list. Example: If the prompt is "I have a secret and it's cat", sensitive words are "cat,secret", and replacement words are "dog,fish", the output might be "I have a fish and it's dog".
Sensitive Word Filter 👻
- STRING
◄prompt—►
◄sensitive_words—►
◄replacement_word_listword1,word2,word3►
CategoryMiniTools
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | — | |
| sensitive_words | STRING | — | |
| replacement_word_list | STRING | word1,word2,word3 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |