Spaces:
Sleeping
Sleeping
| { | |
| "schema_version": "2", | |
| "name": "World Cup Content Creator", | |
| "runtime": { | |
| "default": "client" | |
| }, | |
| "references": [ | |
| { | |
| "id": "ref_image", | |
| "label": "Match Photo", | |
| "role": "reference", | |
| "asset_type": "image", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "x": 80, | |
| "y": 80, | |
| "width": 220, | |
| "height": 122, | |
| "data": {} | |
| }, | |
| { | |
| "id": "ref_moment", | |
| "label": "Match Moment", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Text", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Text", | |
| "type": "text" | |
| } | |
| ], | |
| "x": 80, | |
| "y": 280, | |
| "width": 220, | |
| "height": 200, | |
| "data": { | |
| "in": "USA score in 94th minute to beat Mexico 2-1 in the group stage, LA crowd erupts" | |
| } | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_fmt", | |
| "label": "Prompt Formatter", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "Prompt Formatter", | |
| "inputs": [ | |
| { | |
| "id": "in_moment", | |
| "label": "moment", | |
| "type": "text", | |
| "required": true | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_tweet", | |
| "label": "tweet", | |
| "type": "text", | |
| "output_index": 0 | |
| }, | |
| { | |
| "id": "out_ig", | |
| "label": "instagram", | |
| "type": "text", | |
| "output_index": 1 | |
| }, | |
| { | |
| "id": "out_scene", | |
| "label": "scene", | |
| "type": "text", | |
| "output_index": 2 | |
| } | |
| ], | |
| "x": 380, | |
| "y": 280, | |
| "width": 240, | |
| "height": 220, | |
| "data": {} | |
| }, | |
| { | |
| "id": "op_qwen_tweet", | |
| "label": "Write Tweet", | |
| "role": "operator", | |
| "kind": "model", | |
| "model_id": "Qwen/Qwen2.5-72B-Instruct", | |
| "pipeline_tag": "text-generation", | |
| "provider": "hf-inference", | |
| "inputs": [ | |
| { | |
| "id": "in_0", | |
| "label": "inputs", | |
| "type": "text", | |
| "required": true | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "output", | |
| "type": "text", | |
| "output_index": 0 | |
| } | |
| ], | |
| "x": 700, | |
| "y": 160, | |
| "width": 220, | |
| "height": 121, | |
| "data": {} | |
| }, | |
| { | |
| "id": "op_qwen_ig", | |
| "label": "Write Instagram Caption", | |
| "role": "operator", | |
| "kind": "model", | |
| "model_id": "Qwen/Qwen2.5-72B-Instruct", | |
| "pipeline_tag": "text-generation", | |
| "provider": "hf-inference", | |
| "inputs": [ | |
| { | |
| "id": "in_0", | |
| "label": "inputs", | |
| "type": "text", | |
| "required": true | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "output", | |
| "type": "text", | |
| "output_index": 0 | |
| } | |
| ], | |
| "x": 700, | |
| "y": 320, | |
| "width": 220, | |
| "height": 121, | |
| "data": {} | |
| }, | |
| { | |
| "id": "op_qwen_scene", | |
| "label": "Write Scene Prompt", | |
| "role": "operator", | |
| "kind": "model", | |
| "model_id": "Qwen/Qwen2.5-72B-Instruct", | |
| "pipeline_tag": "text-generation", | |
| "provider": "hf-inference", | |
| "inputs": [ | |
| { | |
| "id": "in_0", | |
| "label": "inputs", | |
| "type": "text", | |
| "required": true | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "output", | |
| "type": "text", | |
| "output_index": 0 | |
| } | |
| ], | |
| "x": 700, | |
| "y": 80, | |
| "width": 220, | |
| "height": 121, | |
| "data": {} | |
| }, | |
| { | |
| "id": "op_flux", | |
| "label": "Generate Scene", | |
| "role": "operator", | |
| "kind": "space", | |
| "space_id": "black-forest-labs/FLUX.1-Kontext-Dev", | |
| "endpoint": "/infer", | |
| "inputs": [ | |
| { | |
| "id": "in_image", | |
| "label": "input_image", | |
| "type": "image", | |
| "required": true | |
| }, | |
| { | |
| "id": "in_prompt", | |
| "label": "prompt", | |
| "type": "text", | |
| "required": true | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "Result", | |
| "type": "image", | |
| "output_index": 0 | |
| } | |
| ], | |
| "x": 980, | |
| "y": 80, | |
| "width": 220, | |
| "height": 121, | |
| "data": {} | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_image", | |
| "label": "Match Scene", | |
| "role": "subject", | |
| "asset_type": "image", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "x": 1260, | |
| "y": 80, | |
| "width": 220, | |
| "height": 107, | |
| "data": {} | |
| }, | |
| { | |
| "id": "sub_tweet", | |
| "label": "Tweet", | |
| "role": "subject", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Text", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Text", | |
| "type": "text" | |
| } | |
| ], | |
| "x": 980, | |
| "y": 160, | |
| "width": 220, | |
| "height": 107, | |
| "data": {} | |
| }, | |
| { | |
| "id": "sub_instagram", | |
| "label": "Instagram Caption", | |
| "role": "subject", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Text", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Text", | |
| "type": "text" | |
| } | |
| ], | |
| "x": 980, | |
| "y": 320, | |
| "width": 220, | |
| "height": 107, | |
| "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "id": "e1", | |
| "from_node_id": "ref_moment", | |
| "from_port_id": "out", | |
| "to_node_id": "op_fmt", | |
| "to_port_id": "in_moment", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e2", | |
| "from_node_id": "op_fmt", | |
| "from_port_id": "out_scene", | |
| "to_node_id": "op_qwen_scene", | |
| "to_port_id": "in_0", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e3", | |
| "from_node_id": "op_fmt", | |
| "from_port_id": "out_tweet", | |
| "to_node_id": "op_qwen_tweet", | |
| "to_port_id": "in_0", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e4", | |
| "from_node_id": "op_fmt", | |
| "from_port_id": "out_ig", | |
| "to_node_id": "op_qwen_ig", | |
| "to_port_id": "in_0", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e6", | |
| "from_node_id": "op_qwen_scene", | |
| "from_port_id": "out_0", | |
| "to_node_id": "op_flux", | |
| "to_port_id": "in_prompt", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e7", | |
| "from_node_id": "ref_image", | |
| "from_port_id": "out", | |
| "to_node_id": "op_flux", | |
| "to_port_id": "in_image", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e8", | |
| "from_node_id": "op_flux", | |
| "from_port_id": "out_0", | |
| "to_node_id": "sub_image", | |
| "to_port_id": "in", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e9", | |
| "from_node_id": "op_qwen_tweet", | |
| "from_port_id": "out_0", | |
| "to_node_id": "sub_tweet", | |
| "to_port_id": "in", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e10", | |
| "from_node_id": "op_qwen_ig", | |
| "from_port_id": "out_0", | |
| "to_node_id": "sub_instagram", | |
| "to_port_id": "in", | |
| "type": "text" | |
| } | |
| ], | |
| "view": { | |
| "default": "canvas" | |
| } | |
| } |