Update Knodes.py

This commit is contained in:
kft334
2024-01-05 00:23:25 -05:00
committed by GitHub
parent d14f7f79a3
commit 4ac06fabf4
+5 -3
View File
@@ -13,8 +13,7 @@ class ImageOutput:
return {
"required": {
"images": ("IMAGE", {"default": None, "forceInput": True}),
"text": ("STRING", {"default": None})},
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},
"text": ("STRING", {"default": None})}
}
RETURN_TYPES = ("IMAGE",)
@@ -26,7 +25,7 @@ class ImageOutput:
CATEGORY = "Knodes"
def Proc(self, images, text, prompt=None, extra_pnginfo=None):
def Proc(self, images, text = ""):
outs = []
for single_image in images:
@@ -48,3 +47,6 @@ NODE_CLASS_MAPPINGS = {
NODE_DISPLAY_NAME_MAPPINGS = {
"ImageOutput": "Image(s) To Websocket (Base64)"
}
NODE_DISPLAY_NAME_MAPPINGS = {
"ImageOutput": "Image(s) To Websocket (Base64)"
}