Spaces:
Sleeping
Sleeping
Update workflow.json
Browse files- workflow.json +7 -39
workflow.json
CHANGED
|
@@ -17,26 +17,6 @@
|
|
| 17 |
}
|
| 18 |
],
|
| 19 |
"operators": [
|
| 20 |
-
{
|
| 21 |
-
"id": "op_refine",
|
| 22 |
-
"label": "Refine Prompt",
|
| 23 |
-
"role": "operator",
|
| 24 |
-
"kind": "space",
|
| 25 |
-
"source": "hf://spaces/multimodalart/prompt-enhancer",
|
| 26 |
-
"space_id": "multimodalart/prompt-enhancer",
|
| 27 |
-
"runtime": "client",
|
| 28 |
-
"x": 380, "y": 40, "width": 240, "height": 124,
|
| 29 |
-
"inputs": [{ "id": "in_0", "label": "Prompt", "type": "text", "required": true }],
|
| 30 |
-
"outputs": [{ "id": "out_0", "label": "Enhanced Prompt", "type": "text", "output_index": 0 }],
|
| 31 |
-
"endpoints": [
|
| 32 |
-
{
|
| 33 |
-
"name": "/enhance",
|
| 34 |
-
"inputs": [{ "id": "in_0", "label": "Prompt", "type": "text", "required": true }],
|
| 35 |
-
"outputs": [{ "id": "out_0", "label": "Enhanced Prompt", "type": "text", "output_index": 0 }]
|
| 36 |
-
}
|
| 37 |
-
],
|
| 38 |
-
"data": {}
|
| 39 |
-
},
|
| 40 |
{
|
| 41 |
"id": "op_flux",
|
| 42 |
"label": "Generate Image",
|
|
@@ -45,25 +25,14 @@
|
|
| 45 |
"source": "hf://spaces/multimodalart/FLUX.1-merged",
|
| 46 |
"space_id": "multimodalart/FLUX.1-merged",
|
| 47 |
"runtime": "client",
|
| 48 |
-
"x":
|
| 49 |
"inputs": [{ "id": "in_0", "label": "Prompt", "type": "text", "required": true }],
|
| 50 |
"outputs": [{ "id": "out_0", "label": "Image", "type": "image", "output_index": 0 }],
|
| 51 |
"endpoints": [
|
| 52 |
{
|
| 53 |
-
"name": "/
|
| 54 |
-
"inputs": [
|
| 55 |
-
|
| 56 |
-
{ "id": "in_1", "label": "Seed", "type": "number", "required": false },
|
| 57 |
-
{ "id": "in_2", "label": "Randomize seed", "type": "boolean", "required": false },
|
| 58 |
-
{ "id": "in_3", "label": "Width", "type": "number", "required": false },
|
| 59 |
-
{ "id": "in_4", "label": "Height", "type": "number", "required": false },
|
| 60 |
-
{ "id": "in_5", "label": "Guidance Scale", "type": "number", "required": false },
|
| 61 |
-
{ "id": "in_6", "label": "Number of inference steps", "type": "number", "required": false }
|
| 62 |
-
],
|
| 63 |
-
"outputs": [
|
| 64 |
-
{ "id": "out_0", "label": "Result", "type": "image", "output_index": 0 },
|
| 65 |
-
{ "id": "out_1", "label": "Seed", "type": "number", "output_index": 1 }
|
| 66 |
-
]
|
| 67 |
}
|
| 68 |
],
|
| 69 |
"data": {}
|
|
@@ -77,14 +46,13 @@
|
|
| 77 |
"asset_type": "image",
|
| 78 |
"inputs": [{ "id": "in", "label": "Image", "type": "image" }],
|
| 79 |
"outputs": [{ "id": "out", "label": "Image", "type": "image" }],
|
| 80 |
-
"x":
|
| 81 |
"data": {}
|
| 82 |
}
|
| 83 |
],
|
| 84 |
"edges": [
|
| 85 |
-
{ "id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "
|
| 86 |
-
{ "id": "e2", "from_node_id": "
|
| 87 |
-
{ "id": "e3", "from_node_id": "op_flux", "from_port_id": "out_0", "to_node_id": "sub_out", "to_port_id": "in", "type": "image" }
|
| 88 |
],
|
| 89 |
"view": { "default": "canvas" }
|
| 90 |
}
|
|
|
|
| 17 |
}
|
| 18 |
],
|
| 19 |
"operators": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
{
|
| 21 |
"id": "op_flux",
|
| 22 |
"label": "Generate Image",
|
|
|
|
| 25 |
"source": "hf://spaces/multimodalart/FLUX.1-merged",
|
| 26 |
"space_id": "multimodalart/FLUX.1-merged",
|
| 27 |
"runtime": "client",
|
| 28 |
+
"x": 380, "y": 140, "width": 220, "height": 124,
|
| 29 |
"inputs": [{ "id": "in_0", "label": "Prompt", "type": "text", "required": true }],
|
| 30 |
"outputs": [{ "id": "out_0", "label": "Image", "type": "image", "output_index": 0 }],
|
| 31 |
"endpoints": [
|
| 32 |
{
|
| 33 |
+
"name": "/generate",
|
| 34 |
+
"inputs": [{ "id": "in_0", "label": "Prompt", "type": "text", "required": true }],
|
| 35 |
+
"outputs": [{ "id": "out_0", "label": "Image", "type": "image", "output_index": 0 }]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
],
|
| 38 |
"data": {}
|
|
|
|
| 46 |
"asset_type": "image",
|
| 47 |
"inputs": [{ "id": "in", "label": "Image", "type": "image" }],
|
| 48 |
"outputs": [{ "id": "out", "label": "Image", "type": "image" }],
|
| 49 |
+
"x": 680, "y": 140, "width": 220, "height": 107,
|
| 50 |
"data": {}
|
| 51 |
}
|
| 52 |
],
|
| 53 |
"edges": [
|
| 54 |
+
{ "id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_flux", "to_port_id": "in_0", "type": "text" },
|
| 55 |
+
{ "id": "e2", "from_node_id": "op_flux", "from_port_id": "out_0", "to_node_id": "sub_out", "to_port_id": "in", "type": "image" }
|
|
|
|
| 56 |
],
|
| 57 |
"view": { "default": "canvas" }
|
| 58 |
}
|