fix bugs
This commit is contained in:
+1
-1
@@ -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:
|
||||
"""
|
||||
|
||||
+4
-2
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user