From 8d2b3fbbc27b4a68fdf97e1855b2a4ba65fa9f4a Mon Sep 17 00:00:00 2001 From: sn0w12 Date: Wed, 21 Feb 2024 16:08:53 +0100 Subject: [PATCH] Added comments --- src/prompt_combine.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/prompt_combine.py b/src/prompt_combine.py index 29ee1ae..155b4e6 100644 --- a/src/prompt_combine.py +++ b/src/prompt_combine.py @@ -22,7 +22,11 @@ class CombineStringNode: CATEGORY = "sn0w" def simplify_tags(self, tags_string): - # Configuration for special phrases + # dictionary defines categories with specific rules for removing or keeping tags. + # remove contains phrases that, if found in a prompt, suggest the tag should be removed under certain conditions. + # keep contains phrases that, if found in a prompt, indicate the tag should be kept. + # if a remove tag is found and no keep tag is found, it will remove all mentions of the category except the tags found in remove. + # keep always takes priority over remove, if any tag in keep is found nothing will be removed special_phrases = { 'eye': { 'remove': ['covering eyes', 'over eyes', 'covered eyes', 'covering face', 'covering own eyes', 'facing away'],