Download ComfyUI-Custom-Scripts/py/show_text.py from crystantine/COMFYUI-CUSTOM-NODES: direct link, hf CLI and curl.
- Browser
- Download file 533 Bytes
-
https://huggingface.co/datasets/crystantine/COMFYUI-CUSTOM-NODES/resolve/main/ComfyUI-Custom-Scripts/py/show_text.py
- Command line
-
hf download hf://datasets/crystantine/COMFYUI-CUSTOM-NODES/ComfyUI-Custom-Scripts/py/show_text.py
-
curl -L -o show_text.py https://huggingface.co/datasets/crystantine/COMFYUI-CUSTOM-NODES/resolve/main/ComfyUI-Custom-Scripts/py/show_text.py
533 Bytes
| class ShowText: | |
| def INPUT_TYPES(s): | |
| return {"required": { | |
| "text": ("STRING", {"forceInput": True}), | |
| }} | |
| INPUT_IS_LIST = True | |
| RETURN_TYPES = ("STRING",) | |
| FUNCTION = "notify" | |
| OUTPUT_NODE = True | |
| OUTPUT_IS_LIST = (True,) | |
| CATEGORY = "utils" | |
| def notify(self, text): | |
| return {"ui": {"text": text}, "result": (text,)} | |
| NODE_CLASS_MAPPINGS = { | |
| "ShowText|pysssss": ShowText, | |
| } | |
| NODE_DISPLAY_NAME_MAPPINGS = { | |
| "ShowText|pysssss": "Show Text 🐍", | |
| } | |