From 54bee29ced02f156a1ec329473b5a3e668e58588 Mon Sep 17 00:00:00 2001 From: aria1th <35677394+aria1th@users.noreply.github.com> Date: Sun, 19 Oct 2025 16:50:40 +0900 Subject: [PATCH] fix bugs --- logic_gates.py | 2 +- utils/tagger.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/logic_gates.py b/logic_gates.py index a154639..0e14614 100644 --- a/logic_gates.py +++ b/logic_gates.py @@ -315,7 +315,7 @@ class LogicGateOr: CATEGORY = "Logic Gates" custom_name = "AOrBGate" def or_(self, input1, input2): - return (True if input1 and input2 else False,) + return (True if input1 or input2 else False,) @node class LogicGateEither: """ diff --git a/utils/tagger.py b/utils/tagger.py index f609feb..2394bec 100644 --- a/utils/tagger.py +++ b/utils/tagger.py @@ -39,5 +39,7 @@ def get_tags(image_path:Union[str, Image.Image], threshold:float = 0.4, replace: result['tags'] = [replace_underscore(tag) for tag in result['tags']] result['chars'] = [replace_underscore(tag) for tag in result['chars']] return result - -tagger_keys = list(tagger_model_names.keys()) +try: + tagger_keys = list(tagger_model_names.keys()) +except NameError: + tagger_keys = []