hmb HF Staff commited on
Commit
a5fc622
·
verified ·
1 Parent(s): 2ef27d6

Update workflow.json

Browse files
Files changed (1) hide show
  1. workflow.json +24 -27
workflow.json CHANGED
@@ -1,48 +1,45 @@
1
  {
2
  "schema_version": "2",
3
- "name": "Text Tools",
4
  "runtime": { "default": "client" },
5
  "references": [
6
  {
7
- "id": "ref_text", "label": "Text", "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": 120, "width": 220, "height": 120, "data": {}
11
  }
12
  ],
13
  "operators": [
14
  {
15
- "id": "op_loud", "label": "shout", "role": "operator", "kind": "fn", "fn": "shout",
16
- "inputs": [{ "id": "in_text", "label": "text", "type": "text", "required": true }],
17
- "outputs": [{ "id": "out_0", "label": "output", "type": "text", "output_index": 0 }],
18
- "x": 380, "y": 40, "width": 220, "height": 120, "data": {}
19
- },
20
- {
21
- "id": "op_rev", "label": "reverse", "role": "operator", "kind": "fn", "fn": "reverse",
22
- "inputs": [{ "id": "in_text", "label": "text", "type": "text", "required": true }],
23
- "outputs": [{ "id": "out_0", "label": "output", "type": "text", "output_index": 0 }],
24
- "x": 380, "y": 240, "width": 220, "height": 120, "data": {}
 
 
 
 
 
25
  }
26
  ],
27
  "subjects": [
28
  {
29
- "id": "sub_loud", "label": "Loud", "role": "subject", "asset_type": "text",
30
- "inputs": [{ "id": "in", "label": "Text", "type": "text" }],
31
- "outputs": [{ "id": "out", "label": "Text", "type": "text" }],
32
- "x": 700, "y": 40, "width": 220, "height": 107, "data": {}
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": "ref_text", "from_port_id": "out", "to_node_id": "op_loud", "to_port_id": "in_text", "type": "text" },
43
- { "id": "e2", "from_node_id": "ref_text", "from_port_id": "out", "to_node_id": "op_rev", "to_port_id": "in_text", "type": "text" },
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
  }