Spaces:
Sleeping
Sleeping
| { | |
| "schema_version": "2", | |
| "name": "Model Endpoint Test", | |
| "runtime": { "default": "client" }, | |
| "references": [ | |
| { | |
| "id": "ref_prompt", "label": "Prompt", "role": "reference", "asset_type": "text", | |
| "inputs": [{ "id": "in", "label": "Text", "type": "text" }], | |
| "outputs": [{ "id": "out", "label": "Text", "type": "text" }], | |
| "x": 80, "y": 140, "width": 220, "height": 120, "data": { "in": null } | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_model", "label": "Generate Image", "role": "operator", | |
| "kind": "model", "model_id": "black-forest-labs/FLUX.1-schnell", | |
| "endpoint": "text_to_image", "pipeline_tag": "text-to-image", | |
| "inputs": [ | |
| { "id": "prompt", "label": "Prompt", "type": "text" }, | |
| { "id": "negative_prompt", "label": "Negative Prompt", "type": "text" }, | |
| { "id": "height", "label": "Height", "type": "number" }, | |
| { "id": "width", "label": "Width", "type": "number" }, | |
| { "id": "num_inference_steps", "label": "Steps", "type": "number" }, | |
| { "id": "guidance_scale", "label": "Guidance Scale", "type": "number" }, | |
| { "id": "seed", "label": "Seed", "type": "number" } | |
| ], | |
| "outputs": [{ "id": "out_0", "label": "Image", "type": "image", "output_index": 0 }], | |
| "x": 380, "y": 80, "width": 280, "height": 180, | |
| "data": { "height": 512, "width": 512, "num_inference_steps": 4 } | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "subj_out", "label": "Image", "role": "subject", "asset_type": "image", | |
| "inputs": [{ "id": "in", "label": "Image", "type": "image" }], | |
| "outputs": [{ "id": "out", "label": "Image", "type": "image" }], | |
| "x": 740, "y": 140, "width": 220, "height": 140, "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| { "id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_model", "to_port_id": "prompt", "type": "text" }, | |
| { "id": "e2", "from_node_id": "op_model", "from_port_id": "out_0", "to_node_id": "subj_out", "to_port_id": "in", "type": "image" } | |
| ], | |
| "view": { "default": "canvas" } | |
| } | |