diff --git a/PromptEmbedMango.py b/PromptEmbedMango.py index 4de87b2..1c446e7 100644 --- a/PromptEmbedMango.py +++ b/PromptEmbedMango.py @@ -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,)