Update nodes.py

This commit is contained in:
Extraltodeus
2024-03-14 23:16:37 +01:00
committed by GitHub
parent b7de08f3aa
commit e9e1d91b34
+1 -1
View File
@@ -56,7 +56,7 @@ class vector_sculptor_node:
def exec(self, clip, text, sculptor_threshold, sculptor_subtract):
ignored_token_ids = [49406, 49407, 0]
initial_tokens = clip.tokenize(text)
if sculptor_threshold < 1:
if sculptor_threshold < 1 or text == "":
total_found = 0
total_replaced = 0
total_candidates = 0