Files
Beakfx-mbq/workflow_parser.py
T
Beak b56f40930f pause for consolidate and before parser
stable with the new mnq_functions holding the classes from image_folder and image_otherthing etc.
2025-10-02 22:41:05 -07:00

19 lines
500 B
Python

# workflow_parser.py reads and anylizes TEXT-prompt and TEXT-workflow chunks for display in mbq
def parse_workflow(chunks: dict) -> dict:
"""
chunks: JSON-like dict from image metadata
returns: normalized dict of parameters:
{
"process": "inpaint",
"model": "sd3.5_large.safetensors",
"sampler": "euler",
"steps": 30,
"cfg": 7.5,
"denoise": 0.2,
"prompt": "...",
"negative_prompt": "...",
...
}
"""