{ "schema_version": "2", "name": "Text Tools", "runtime": { "default": "client" }, "references": [ { "id": "ref_text", "label": "Text", "role": "reference", "asset_type": "text", "inputs": [ { "id": "in", "label": "Text", "type": "text" } ], "outputs": [ { "id": "out", "label": "Text", "type": "text" } ], "width": 220, "data": { "out": "A red fox in a misty forest" } } ], "operators": [ { "id": "op_rev", "label": "reverse", "role": "operator", "kind": "fn", "fn": "reverse", "inputs": [ { "id": "in_text", "label": "text", "type": "text", "required": true } ], "outputs": [ { "id": "out_0", "label": "output", "type": "text", "output_index": 0 } ], "width": 220, "data": {} }, { "id": "op_gen", "label": "Llama 3.1 8B", "role": "operator", "kind": "model", "model_id": "meta-llama/Llama-3.1-8B-Instruct", "pipeline_tag": "text-generation", "endpoint": "chat_completion", "inputs": [ { "id": "image", "label": "Image", "type": "image" }, { "id": "text", "label": "Prompt", "type": "text" } ], "outputs": [ { "id": "out_0", "label": "Text", "type": "text", "output_index": 0 } ], "width": 220, "data": {} }, { "id": "op_space", "label": "FLUX.1 merged", "role": "operator", "kind": "space", "space_id": "multimodalart/FLUX.1-merged", "runtime": "client", "inputs": [ { "id": "in_0", "label": "Prompt", "type": "text", "required": true } ], "outputs": [ { "id": "out_0", "label": "Result", "type": "image", "output_index": 0 } ], "width": 220, "data": {} } ], "subjects": [ { "id": "sub_rev", "label": "Reversed", "role": "subject", "asset_type": "text", "inputs": [ { "id": "in", "label": "Text", "type": "text" } ], "outputs": [ { "id": "out", "label": "Text", "type": "text" } ], "width": 220, "data": {} }, { "id": "sub_gen", "label": "Generated", "role": "subject", "asset_type": "text", "inputs": [ { "id": "in", "label": "Text", "type": "text" } ], "outputs": [ { "id": "out", "label": "Text", "type": "text" } ], "width": 220, "data": {} }, { "id": "sub_image", "label": "Image", "role": "subject", "asset_type": "image", "inputs": [ { "id": "in", "label": "Image", "type": "image" } ], "outputs": [ { "id": "out", "label": "Image", "type": "image" } ], "width": 220, "data": {} } ], "edges": [ { "id": "e2", "from_node_id": "ref_text", "from_port_id": "out", "to_node_id": "op_rev", "to_port_id": "in_text", "type": "text" }, { "id": "e3", "from_node_id": "ref_text", "from_port_id": "out", "to_node_id": "op_gen", "to_port_id": "text", "type": "text" }, { "id": "e4", "from_node_id": "ref_text", "from_port_id": "out", "to_node_id": "op_space", "to_port_id": "in_0", "type": "text" }, { "id": "e6", "from_node_id": "op_rev", "from_port_id": "out_0", "to_node_id": "sub_rev", "to_port_id": "in", "type": "text" }, { "id": "e7", "from_node_id": "op_gen", "from_port_id": "out_0", "to_node_id": "sub_gen", "to_port_id": "in", "type": "text" }, { "id": "e8", "from_node_id": "op_space", "from_port_id": "out_0", "to_node_id": "sub_image", "to_port_id": "in", "type": "image" } ], "view": { "default": "canvas" } }