Spaces:
Sleeping
Sleeping
Update workflow.json
Browse files- workflow.json +24 -27
workflow.json
CHANGED
|
@@ -1,48 +1,45 @@
|
|
| 1 |
{
|
| 2 |
"schema_version": "2",
|
| 3 |
-
"name": "
|
| 4 |
"runtime": { "default": "client" },
|
| 5 |
"references": [
|
| 6 |
{
|
| 7 |
-
"id": "
|
| 8 |
"inputs": [{ "id": "in", "label": "Text", "type": "text" }],
|
| 9 |
"outputs": [{ "id": "out", "label": "Text", "type": "text" }],
|
| 10 |
-
"x": 80, "y":
|
| 11 |
}
|
| 12 |
],
|
| 13 |
"operators": [
|
| 14 |
{
|
| 15 |
-
"id": "
|
| 16 |
-
"
|
| 17 |
-
"
|
| 18 |
-
"
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
],
|
| 27 |
"subjects": [
|
| 28 |
{
|
| 29 |
-
"id": "
|
| 30 |
-
"inputs": [{ "id": "in", "label": "
|
| 31 |
-
"outputs": [{ "id": "out", "label": "
|
| 32 |
-
"x":
|
| 33 |
-
},
|
| 34 |
-
{
|
| 35 |
-
"id": "sub_rev", "label": "Reversed", "role": "subject", "asset_type": "text",
|
| 36 |
-
"inputs": [{ "id": "in", "label": "Text", "type": "text" }],
|
| 37 |
-
"outputs": [{ "id": "out", "label": "Text", "type": "text" }],
|
| 38 |
-
"x": 700, "y": 240, "width": 220, "height": 107, "data": {}
|
| 39 |
}
|
| 40 |
],
|
| 41 |
"edges": [
|
| 42 |
-
{ "id": "e1", "from_node_id": "
|
| 43 |
-
{ "id": "e2", "from_node_id": "
|
| 44 |
-
{ "id": "e3", "from_node_id": "op_loud", "from_port_id": "out_0", "to_node_id": "sub_loud", "to_port_id": "in", "type": "text" },
|
| 45 |
-
{ "id": "e4", "from_node_id": "op_rev", "from_port_id": "out_0", "to_node_id": "sub_rev", "to_port_id": "in", "type": "text" }
|
| 46 |
],
|
| 47 |
"view": { "default": "canvas" }
|
| 48 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"schema_version": "2",
|
| 3 |
+
"name": "Model Endpoint Test",
|
| 4 |
"runtime": { "default": "client" },
|
| 5 |
"references": [
|
| 6 |
{
|
| 7 |
+
"id": "ref_prompt", "label": "Prompt", "role": "reference", "asset_type": "text",
|
| 8 |
"inputs": [{ "id": "in", "label": "Text", "type": "text" }],
|
| 9 |
"outputs": [{ "id": "out", "label": "Text", "type": "text" }],
|
| 10 |
+
"x": 80, "y": 140, "width": 220, "height": 120, "data": { "in": null }
|
| 11 |
}
|
| 12 |
],
|
| 13 |
"operators": [
|
| 14 |
{
|
| 15 |
+
"id": "op_model", "label": "Generate Image", "role": "operator",
|
| 16 |
+
"kind": "model", "model_id": "black-forest-labs/FLUX.1-schnell",
|
| 17 |
+
"endpoint": "text_to_image", "pipeline_tag": "text-to-image",
|
| 18 |
+
"inputs": [
|
| 19 |
+
{ "id": "prompt", "label": "Prompt", "type": "text" },
|
| 20 |
+
{ "id": "negative_prompt", "label": "Negative Prompt", "type": "text" },
|
| 21 |
+
{ "id": "height", "label": "Height", "type": "number" },
|
| 22 |
+
{ "id": "width", "label": "Width", "type": "number" },
|
| 23 |
+
{ "id": "num_inference_steps", "label": "Steps", "type": "number" },
|
| 24 |
+
{ "id": "guidance_scale", "label": "Guidance Scale", "type": "number" },
|
| 25 |
+
{ "id": "seed", "label": "Seed", "type": "number" }
|
| 26 |
+
],
|
| 27 |
+
"outputs": [{ "id": "out_0", "label": "Image", "type": "image", "output_index": 0 }],
|
| 28 |
+
"x": 380, "y": 80, "width": 280, "height": 180,
|
| 29 |
+
"data": { "height": 512, "width": 512, "num_inference_steps": 4 }
|
| 30 |
}
|
| 31 |
],
|
| 32 |
"subjects": [
|
| 33 |
{
|
| 34 |
+
"id": "subj_out", "label": "Image", "role": "subject", "asset_type": "image",
|
| 35 |
+
"inputs": [{ "id": "in", "label": "Image", "type": "image" }],
|
| 36 |
+
"outputs": [{ "id": "out", "label": "Image", "type": "image" }],
|
| 37 |
+
"x": 740, "y": 140, "width": 220, "height": 140, "data": {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
}
|
| 39 |
],
|
| 40 |
"edges": [
|
| 41 |
+
{ "id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_model", "to_port_id": "prompt", "type": "text" },
|
| 42 |
+
{ "id": "e2", "from_node_id": "op_model", "from_port_id": "out_0", "to_node_id": "subj_out", "to_port_id": "in", "type": "image" }
|
|
|
|
|
|
|
| 43 |
],
|
| 44 |
"view": { "default": "canvas" }
|
| 45 |
}
|