hmb HF Staff commited on
Commit
790587c
·
verified ·
1 Parent(s): 3c55c71

Create workflow.json

Browse files
Files changed (1) hide show
  1. workflow.json +90 -0
workflow.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "2",
3
+ "name": "Error Banner Demo",
4
+ "runtime": { "default": "client" },
5
+ "references": [
6
+ {
7
+ "id": "ref_prompt",
8
+ "label": "Prompt",
9
+ "role": "reference",
10
+ "asset_type": "text",
11
+ "inputs": [{ "id": "in", "label": "Text", "type": "text" }],
12
+ "outputs": [{ "id": "out", "label": "Text", "type": "text" }],
13
+ "x": 80, "y": 140, "width": 220, "height": 163,
14
+ "data": {
15
+ "in": "A lone lighthouse on a rocky cliff at sunset, dramatic storm clouds rolling in, golden hour light breaking through, oil painting style, highly detailed"
16
+ }
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",
43
+ "role": "operator",
44
+ "kind": "space",
45
+ "source": "hf://spaces/multimodalart/FLUX.1-merged",
46
+ "space_id": "multimodalart/FLUX.1-merged",
47
+ "runtime": "client",
48
+ "x": 700, "y": 140, "width": 220, "height": 124,
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": "/infer",
54
+ "inputs": [
55
+ { "id": "in_0", "label": "Prompt", "type": "text", "required": true },
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": {}
70
+ }
71
+ ],
72
+ "subjects": [
73
+ {
74
+ "id": "sub_out",
75
+ "label": "Generated Image",
76
+ "role": "subject",
77
+ "asset_type": "image",
78
+ "inputs": [{ "id": "in", "label": "Image", "type": "image" }],
79
+ "outputs": [{ "id": "out", "label": "Image", "type": "image" }],
80
+ "x": 1000, "y": 140, "width": 220, "height": 107,
81
+ "data": {}
82
+ }
83
+ ],
84
+ "edges": [
85
+ { "id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_refine", "to_port_id": "in_0", "type": "text" },
86
+ { "id": "e2", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_flux", "to_port_id": "in_0", "type": "text" },
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
+ }