Download workflow.json from hmb/ad-seo: direct link, hf CLI and curl.
- Browser
- Download file 4.59 kB
-
https://huggingface.co/spaces/hmb/ad-seo/resolve/main/workflow.json
- Command line
-
hf download hf://spaces/hmb/ad-seo/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/hmb/ad-seo/resolve/main/workflow.json
4.59 kB
| { | |
| "schema_version": "2", | |
| "name": "One Photo to Full Listing", | |
| "references": [ | |
| { | |
| "id": "ref_photo", "label": "Product Photo", "role": "reference", | |
| "asset_type": "image", | |
| "inputs": [{"id": "in", "label": "Image", "type": "image"}], | |
| "outputs": [{"id": "out", "label": "Image", "type": "image"}], | |
| "x": 80, "y": 220, "width": 220, "height": 124, "data": {} | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_whitebg", "label": "White-BG Shot", "role": "operator", | |
| "kind": "space", | |
| "space_id": "aryadytm/remove-photo-background", | |
| "endpoint": "/predict", | |
| "inputs": [{"id": "in_0", "label": "Image", "type": "image", "required": true}], | |
| "outputs": [{"id": "out_0", "label": "Clean Image", "type": "image", "output_index": 0}], | |
| "x": 420, "y": 60, "width": 220, "height": 124, "data": {} | |
| }, | |
| { | |
| "id": "op_read", "label": "Read Product", "role": "operator", | |
| "kind": "space", | |
| "space_id": "fancyfeast/joy-caption-pre-alpha", | |
| "endpoint": "/stream_chat", | |
| "inputs": [{"id": "in_0", "label": "Image", "type": "image", "required": true}], | |
| "outputs": [{"id": "out_0", "label": "Description", "type": "text", "output_index": 0}], | |
| "x": 420, "y": 300, "width": 220, "height": 124, "data": {} | |
| }, | |
| { | |
| "id": "op_adcopy", "label": "Ad Copy", "role": "operator", | |
| "kind": "model", | |
| "model_id": "meta-llama/Llama-3.2-3B-Instruct", | |
| "pipeline_tag": "text-generation", | |
| "inputs": [{"id": "in_0", "label": "Description", "type": "text", "required": true}], | |
| "outputs": [{"id": "out_0", "label": "Ad Copy", "type": "text", "output_index": 0}], | |
| "x": 760, "y": 220, "width": 220, "height": 124, | |
| "data": {"prompt_prefix": "You are an e-commerce copywriter. Using ONLY the product description below, write a punchy, benefit-led product description of 40-60 words. No emojis, no hype adjectives like 'amazing'. Description: "} | |
| }, | |
| { | |
| "id": "op_seo", "label": "SEO Title + Tags + Alt", "role": "operator", | |
| "kind": "model", | |
| "model_id": "meta-llama/Llama-3.2-3B-Instruct", | |
| "pipeline_tag": "text-generation", | |
| "inputs": [{"id": "in_0", "label": "Description", "type": "text", "required": true}], | |
| "outputs": [{"id": "out_0", "label": "SEO Pack", "type": "text", "output_index": 0}], | |
| "x": 760, "y": 400, "width": 220, "height": 124, | |
| "data": {"prompt_prefix": "You are an e-commerce SEO assistant. From the product description below, output exactly: a 60-char SEO title, 10 comma-separated tags, and a 125-char image alt-text. Description: "} | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_whitebg", "label": "Clean Product Shot", "role": "subject", | |
| "asset_type": "image", | |
| "inputs": [{"id": "in", "label": "Image", "type": "image"}], | |
| "outputs": [{"id": "out", "label": "Image", "type": "image"}], | |
| "x": 1100, "y": 60, "width": 220, "height": 107, "data": {} | |
| }, | |
| { | |
| "id": "sub_adcopy", "label": "Listing Copy", "role": "subject", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 1100, "y": 220, "width": 220, "height": 107, "data": {} | |
| }, | |
| { | |
| "id": "sub_seo", "label": "SEO Pack", "role": "subject", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 1100, "y": 400, "width": 220, "height": 107, "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| {"id": "e1", "from_node_id": "ref_photo", "from_port_id": "out", "to_node_id": "op_whitebg", "to_port_id": "in_0", "type": "image"}, | |
| {"id": "e2", "from_node_id": "ref_photo", "from_port_id": "out", "to_node_id": "op_read", "to_port_id": "in_0", "type": "image"}, | |
| {"id": "e3", "from_node_id": "op_read", "from_port_id": "out_0", "to_node_id": "op_adcopy", "to_port_id": "in_0", "type": "text"}, | |
| {"id": "e4", "from_node_id": "op_read", "from_port_id": "out_0", "to_node_id": "op_seo", "to_port_id": "in_0", "type": "text"}, | |
| {"id": "e5", "from_node_id": "op_whitebg","from_port_id": "out_0", "to_node_id": "sub_whitebg","to_port_id": "in", "type": "image"}, | |
| {"id": "e6", "from_node_id": "op_adcopy", "from_port_id": "out_0", "to_node_id": "sub_adcopy", "to_port_id": "in", "type": "text"}, | |
| {"id": "e7", "from_node_id": "op_seo", "from_port_id": "out_0", "to_node_id": "sub_seo", "to_port_id": "in", "type": "text"} | |
| ] | |
| } |