Files
lum3on-comfyui_LLM_Polymath/__init__.py
T
lum3on 1c06f188c4 Add Flux Context Preset Node with 13 embedded presets and JavaScript revelation window
- Created flux_context_preset.py with 13 predefined image transformation presets
- Added dropdown selection for presets (Teleport, Move Camera, Relight, Product, Zoom, Colorize, Movie Poster, Cartoonify, Remove Text, Haircut, Bodybuilder, Remove Furniture, Interior Design)
- Included additional multiline text field for custom instructions
- String output combines selected preset with additional text
- Added web/flux_context_preset.js with modal window to reveal all system prompts
- Updated __init__.py to register the new node
- Features beautiful dark theme styling matching ComfyUI aesthetic
2025-07-15 13:40:43 +00:00

48 lines
2.1 KiB
Python

from .polymath import PolymathSettings, Polymath
from .media_scraper import MediaScraper
from .helper import SaveAbs, TextSplitter, StringListPicker
#from .concept_eraser import ConceptEraserNode
from .textmask import TextMaskNode
from .flux_context_preset import FluxContextPreset
#from .template import TemplateNode
NODE_CLASS_MAPPINGS = {
"polymath_settings": PolymathSettings,
"polymath_chat": Polymath,
"polymath_scraper": MediaScraper,
"polymath_helper": SaveAbs,
"polymath_TextSplitter": TextSplitter,
"polymath_StringListPicker": StringListPicker,
"polymath_text_mask": TextMaskNode,
"flux_context_preset": FluxContextPreset,
#"polymath_template": TemplateNode
#"polymath_concept_eraser": ConceptEraserNode,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"polymath_chat": "LLM Polymath Chat with Advanced Web and Link Search",
"polymath_scraper": "Media Scraper",
"polymath_helper": "Save Image to Absolute Path",
"polymath_TextSplitter": "Split Texts by Specified Delimiter",
"polymath_StringListPicker": "Picks Texts from a List by Index",
"polymath_text_mask": "Generate mask from text",
"flux_context_preset": "Flux Context Preset",
"polymath_template": "Simple Node Template"
#"polymath_concept_eraser": "Erase Concept from Model"
}
ascii_art = """
Polymath is brought to you by
_ _ _ _
(▒)(▒) _ _ _ _ _ _ _(▒)(▒)_ _ _ _ _
(▒) (▒) (▒) (▒)(▒)_(▒)(▒) (▒) _(▒) (▒)(▒)_ (▒)(▒)
(▒) (▒) (▒) (▒) (▒) (▒) (▒)(▒)(▒) (▒)(▒) (▒)
_ (▒) _(▒)_ _(▒)_ (▒) (▒) (▒)(▒)_ _(▒) (▒)_ _(▒)(▒) (▒)
(▒)(▒)(▒) (▒)(▒) (▒)(▒) (▒) (▒) (▒)(▒) (▒)(▒) (▒) (▒)
"""
print(f"\033[92m{ascii_art}\033[0m")
WEB_DIRECTORY = "./web"
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]