The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add string output to preview text node. (#13406)
comfyanonymousc5569e862794
diff --git a/comfy_extras/nodes_preview_any.py b/comfy_extras/nodes_preview_any.pyindex b0a6f279d..0a1558f2b 100644--- a/comfy_extras/nodes_preview_any.py+++ b/comfy_extras/nodes_preview_any.py@@ -11,7 +11,7 @@ class PreviewAny():"required": {"source": (IO.ANY, {})},}- RETURN_TYPES = ()+ RETURN_TYPES = (IO.STRING,)FUNCTION = "main"OUTPUT_NODE = True@@ -33,7 +33,7 @@ class PreviewAny():except Exception:value = 'source exists, but could not be serialized.'- return {"ui": {"text": (value,)}}+ return {"ui": {"text": (value,)}, "result": (value,)}NODE_CLASS_MAPPINGS = {"PreviewAny": PreviewAny,