Spaces:
Running
Running
Download workflow.json from hmb/ugc-creator: direct link, hf CLI and curl.
- Browser
- Download file 4.11 kB
-
https://huggingface.co/spaces/hmb/ugc-creator/resolve/main/workflow.json
- Command line
-
hf download hf://spaces/hmb/ugc-creator/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/hmb/ugc-creator/resolve/main/workflow.json
4.11 kB
| { | |
| "schema_version": "2", | |
| "name": "Dream Wan2 Video", | |
| "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" }], | |
| "x": 80, "y": 80, "width": 220, "height": 163, | |
| "data": { "in": "a woman is on a hike in the mountains and pauses at the top to take a drink of the product" } | |
| }, | |
| { | |
| "id": "ref_image", "label": "Image", "role": "reference", "asset_type": "image", | |
| "inputs": [{ "id": "in", "label": "Image", "type": "image" }], | |
| "outputs": [{ "id": "out", "label": "Image", "type": "image" }], | |
| "x": 80, "y": 320, "width": 220, "height": 260, "data": {} | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_wan", "label": "Dream-wan2-2-faster-Pro", "role": "operator", "kind": "space", | |
| "space_id": "Wan-AI/Dream-wan2-2-faster-Pro", | |
| "endpoint": "/generate_video", | |
| "endpoints": [{ "name": "/generate_video", | |
| "inputs": [ | |
| { "id": "in_0", "label": "Upload Image", "type": "image", "required": true }, | |
| { "id": "in_1", "label": "Motion Prompt", "type": "text", "required": true }, | |
| { "id": "in_2", "label": "Inference Steps", "type": "number", "required": false }, | |
| { "id": "in_3", "label": "Negative Prompt", "type": "text", "required": false }, | |
| { "id": "in_4", "label": "Duration (seconds)", "type": "number", "required": false }, | |
| { "id": "in_5", "label": "Guidance Scale — High-noise stage", "type": "number", "required": false }, | |
| { "id": "in_6", "label": "Guidance Scale 2 — Low-noise stage", "type": "number", "required": false }, | |
| { "id": "in_7", "label": "Seed", "type": "number", "required": false }, | |
| { "id": "in_8", "label": "Randomize Seed", "type": "boolean", "required": false } | |
| ], | |
| "outputs": [ | |
| { "id": "out_0", "label": "Generated Video", "type": "video", "output_index": 0 }, | |
| { "id": "out_1", "label": "Used Seed", "type": "number", "output_index": 1 } | |
| ] | |
| }], | |
| "inputs": [ | |
| { "id": "in_0", "label": "Upload Image", "type": "image", "required": true }, | |
| { "id": "in_1", "label": "Motion Prompt", "type": "text", "required": true }, | |
| { "id": "in_2", "label": "Inference Steps", "type": "number", "required": false }, | |
| { "id": "in_3", "label": "Negative Prompt", "type": "text", "required": false }, | |
| { "id": "in_4", "label": "Duration (seconds)", "type": "number", "required": false }, | |
| { "id": "in_5", "label": "Guidance Scale — High-noise stage", "type": "number", "required": false }, | |
| { "id": "in_6", "label": "Guidance Scale 2 — Low-noise stage", "type": "number", "required": false }, | |
| { "id": "in_7", "label": "Seed", "type": "number", "required": false }, | |
| { "id": "in_8", "label": "Randomize Seed", "type": "boolean", "required": false } | |
| ], | |
| "outputs": [ | |
| { "id": "out_0", "label": "Generated Video", "type": "video", "output_index": 0 }, | |
| { "id": "out_1", "label": "Used Seed", "type": "number", "output_index": 1 } | |
| ], | |
| "x": 380, "y": 80, "width": 320, "height": 400, "data": {} | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_video", "label": "Video", "role": "subject", "asset_type": "video", | |
| "inputs": [{ "id": "in", "label": "Video", "type": "video" }], | |
| "outputs": [{ "id": "out", "label": "Video", "type": "video" }], | |
| "x": 780, "y": 80, "width": 220, "height": 200, "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| { "id": "e1", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_wan", "to_port_id": "in_0", "type": "image" }, | |
| { "id": "e2", "from_node_id": "ref_text", "from_port_id": "out", "to_node_id": "op_wan", "to_port_id": "in_1", "type": "text" }, | |
| { "id": "e3", "from_node_id": "op_wan", "from_port_id": "out_0", "to_node_id": "sub_video", "to_port_id": "in", "type": "video" } | |
| ], | |
| "view": { "default": "canvas" } | |
| } |