Update PromptEmbedMango.py

String connector is no longer mandatory
This commit is contained in:
mango1010
2025-03-10 23:18:08 +01:00
committed by GitHub
parent fa7a20777a
commit 5865ab224f
+6 -1
View File
@@ -51,7 +51,12 @@ class PromptEmbedMango:
FUNCTION = "execute"
CATEGORY = "Mango Node Pack/Metadata"
def execute(self, QualityTags, SceneDescription, Tags, Embeddings, string=""):
def execute(self, QualityTags="", SceneDescription="", Tags="", Embeddings="", string=None):
if string is None:
string = ""
parts = [s.strip() for s in (QualityTags, SceneDescription, Tags, Embeddings, string) if s.strip()]
concatenated = ", ".join(parts)
return (concatenated,)