168 pass 169 170 @classmethod 171 def INPUT_TYPES(s): 172 seed = random.randint(1, 2 ** 31) 173 return { 174 "required": { 175 "prompt": ("STRING", {
284 pass 285 #The default system prompt referenced https://github.com/MinusZoneAI/ComfyUI-Prompt-MZ project 286 @classmethod 287 def INPUT_TYPES(s): 288 seed = random.randint(1, 2 ** 31) 289 return { 290 "required": { 291 "prompt": ("STRING", {
1 from .CompfyuiOllama import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS 2 import sys 3 import os 4 import subprocess 5 import threading 6 import locale 7 8 def handle_stream(stream, is_stdout):
14 else: 15 print(msg, end="", file=sys.stderr) 16 17 def process_wrap(cmd_str, cwd=None): 18 process = subprocess.Popen(cmd_str, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, bufsize=1) 19 20 stdout_thread = threading.Thread(target=handle_stream, args=(process.stdout, True)) 21 stderr_thread = threading.Thread(target=handle_stream, args=(process.stderr, False))