Spaces:
Running on Zero

ming-image-0-2-design / workflow.json
akhaliq's picture
akhaliq HF Staff
Add typed Ming generation workflow
3530f0e verified
Raw History Blame Contribute Delete
4.09 kB
{
"schema_version": "2",
"name": "Ming Design Workflow",
"references": [
{
"id": "ref_prompt",
"label": "Design Brief",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 40,
"y": 60,
"width": 320,
"height": 190,
"data": {"out": "A minimal landing page for a privacy-first notes app called Plaintext. Warm off-white background, charcoal type, cobalt accents, the headline 'Your thoughts stay yours.', three feature cards, precise grid, generous whitespace, legible typography, no additional copy."}
},
{
"id": "ref_size",
"label": "Output Size",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 40,
"y": 280,
"width": 220,
"height": 90,
"data": {"out": "2048 × 2048 · square"}
},
{
"id": "ref_steps",
"label": "Steps",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 40,
"y": 400,
"width": 120,
"height": 90,
"data": {"out": "12"}
},
{
"id": "ref_guidance",
"label": "CFG",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 190,
"y": 400,
"width": 120,
"height": 90,
"data": {"out": "1.0"}
},
{
"id": "ref_seed",
"label": "Seed",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 340,
"y": 400,
"width": 120,
"height": 90,
"data": {"out": "42"}
}
],
"operators": [
{
"id": "op_generate",
"label": "Ming Generate",
"role": "operator",
"kind": "fn",
"fn": "ming_generate",
"inputs": [
{"id": "prompt", "label": "Design Brief", "type": "text", "required": true},
{"id": "size", "label": "Output Size", "type": "text"},
{"id": "steps", "label": "Steps", "type": "text"},
{"id": "guidance", "label": "CFG", "type": "text"},
{"id": "seed", "label": "Seed", "type": "text"}
],
"outputs": [{"id": "out_0", "label": "RGBA Image", "type": "image", "output_index": 0}],
"x": 520,
"y": 180,
"width": 250,
"height": 210,
"data": {}
}
],
"subjects": [
{
"id": "sub_design",
"label": "Generated Design",
"role": "subject",
"asset_type": "image",
"inputs": [{"id": "in", "label": "RGBA Image", "type": "image"}],
"outputs": [{"id": "out", "label": "RGBA Image", "type": "image"}],
"x": 850,
"y": 190,
"width": 250,
"height": 120,
"data": {}
}
],
"edges": [
{"id": "e_prompt", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "prompt", "type": "text"},
{"id": "e_size", "from_node_id": "ref_size", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "size", "type": "text"},
{"id": "e_steps", "from_node_id": "ref_steps", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "steps", "type": "text"},
{"id": "e_guidance", "from_node_id": "ref_guidance", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "guidance", "type": "text"},
{"id": "e_seed", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "seed", "type": "text"},
{"id": "e_image", "from_node_id": "op_generate", "from_port_id": "out_0", "to_node_id": "sub_design", "to_port_id": "in", "type": "image"}
]
}