Spaces:
Running on Zero
Running on Zero
| { | |
| "schema_version": "2", | |
| "name": "ZeroGPU Workflow Serialization Test", | |
| "runtime": { "default": "client" }, | |
| "references": [ | |
| { | |
| "id": "n_prompt", | |
| "label": "Prompt", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{ "id": "in", "label": "Prompt", "type": "text" }], | |
| "outputs": [{ "id": "out", "label": "Prompt", "type": "text" }], | |
| "x": 80, | |
| "y": 120, | |
| "width": 220, | |
| "height": 163, | |
| "data": {} | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "n_generate", | |
| "label": "generate (GPU, 5s)", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "generate", | |
| "source": "generate", | |
| "runtime": "client", | |
| "inputs": [{ "id": "in_text", "label": "text", "type": "text" }], | |
| "outputs": [{ "id": "out_0", "label": "output", "type": "text" }], | |
| "x": 380, | |
| "y": 120, | |
| "width": 220, | |
| "height": 124, | |
| "data": {} | |
| }, | |
| { | |
| "id": "n_visualize", | |
| "label": "visualize (CPU, 3s)", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "visualize", | |
| "source": "visualize", | |
| "runtime": "client", | |
| "inputs": [{ "id": "in_text", "label": "text", "type": "text" }], | |
| "outputs": [{ "id": "out_0", "label": "output", "type": "text" }], | |
| "x": 680, | |
| "y": 120, | |
| "width": 220, | |
| "height": 124, | |
| "data": {} | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "n_result", | |
| "label": "Result", | |
| "role": "subject", | |
| "asset_type": "text", | |
| "inputs": [{ "id": "in", "label": "Result", "type": "text" }], | |
| "outputs": [{ "id": "out", "label": "Result", "type": "text" }], | |
| "x": 980, | |
| "y": 120, | |
| "width": 220, | |
| "height": 163, | |
| "data": { "in": null } | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "id": "e1", | |
| "from_node_id": "n_prompt", | |
| "from_port_id": "out", | |
| "to_node_id": "n_generate", | |
| "to_port_id": "in_text", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e2", | |
| "from_node_id": "n_generate", | |
| "from_port_id": "out_0", | |
| "to_node_id": "n_visualize", | |
| "to_port_id": "in_text", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e3", | |
| "from_node_id": "n_visualize", | |
| "from_port_id": "out_0", | |
| "to_node_id": "n_result", | |
| "to_port_id": "in", | |
| "type": "text" | |
| } | |
| ], | |
| "view": { "default": "canvas" } | |
| } | |