zgpu-workflow / workflow.json
hmb's picture
hmb HF Staff
Create workflow.json
c5af162 verified
Raw
History Blame Contribute Delete
1.52 kB
{
"schema_version": "2",
"name": "ZeroGPU Test",
"runtime": { "default": "client" },
"references": [
{
"id": "ref_prompt",
"role": "reference",
"label": "Prompt",
"asset_type": "text",
"inputs": [{ "id": "in", "label": "Text", "type": "text" }],
"outputs": [{ "id": "out", "label": "Text", "type": "text" }],
"data": { "out": "hello world" },
"x": 60, "y": 180, "width": 220, "height": 160
}
],
"operators": [
{
"id": "op_generate",
"role": "operator",
"kind": "fn",
"fn": "generate",
"label": "generate",
"inputs": [{ "id": "in_prompt", "label": "prompt", "type": "text" }],
"outputs": [{ "id": "out_0", "label": "output", "type": "text" }],
"data": {},
"x": 340, "y": 120, "width": 220, "height": 120
}
],
"subjects": [
{
"id": "sub_result",
"role": "subject",
"label": "Result",
"asset_type": "text",
"inputs": [{ "id": "in", "label": "Text", "type": "text" }],
"outputs": [{ "id": "out", "label": "Text", "type": "text" }],
"data": {},
"x": 620, "y": 180, "width": 220, "height": 160
}
],
"edges": [
{ "id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "in_prompt", "type": "text" },
{ "id": "e2", "from_node_id": "op_generate", "from_port_id": "out_0", "to_node_id": "sub_result", "to_port_id": "in", "type": "text" }
],
"view": { "default": "canvas" }
}