Spaces:
Running on Zero
Running on Zero
Download workflow.json from akhaliq/LongCat-Avatar-Studio: direct link, hf CLI and curl.
- Browser
- Download file 3.92 kB
-
https://huggingface.co/spaces/akhaliq/LongCat-Avatar-Studio/resolve/main/workflow.json
- Command line
-
hf download hf://spaces/akhaliq/LongCat-Avatar-Studio/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/akhaliq/LongCat-Avatar-Studio/resolve/main/workflow.json
3.92 kB
| { | |
| "schema_version": "2", | |
| "name": "LongCat Avatar Workflow", | |
| "references": [ | |
| { | |
| "id": "ref_image", | |
| "label": "Reference Portrait", | |
| "role": "reference", | |
| "asset_type": "image", | |
| "inputs": [{"id": "in", "label": "Image", "type": "image"}], | |
| "outputs": [{"id": "out", "label": "Image", "type": "image"}], | |
| "x": 40, | |
| "y": 40, | |
| "width": 220, | |
| "height": 130, | |
| "data": {} | |
| }, | |
| { | |
| "id": "ref_audio", | |
| "label": "Driving Audio", | |
| "role": "reference", | |
| "asset_type": "audio", | |
| "inputs": [{"id": "in", "label": "Audio", "type": "audio"}], | |
| "outputs": [{"id": "out", "label": "Audio", "type": "audio"}], | |
| "x": 40, | |
| "y": 210, | |
| "width": 220, | |
| "height": 130, | |
| "data": {} | |
| }, | |
| { | |
| "id": "ref_prompt", | |
| "label": "Prompt", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 320, | |
| "y": 40, | |
| "width": 300, | |
| "height": 130, | |
| "data": {"out": "A person is speaking expressively, looking at the camera."} | |
| }, | |
| { | |
| "id": "ref_resolution", | |
| "label": "Resolution", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 320, | |
| "y": 200, | |
| "width": 140, | |
| "height": 90, | |
| "data": {"out": "480p"} | |
| }, | |
| { | |
| "id": "ref_seed", | |
| "label": "Seed", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 480, | |
| "y": 200, | |
| "width": 130, | |
| "height": 90, | |
| "data": {"out": "42"} | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_avatar", | |
| "label": "LongCat Avatar Generate", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "avatar_generate", | |
| "inputs": [ | |
| {"id": "image", "label": "Portrait", "type": "image", "required": true}, | |
| {"id": "audio", "label": "Driving Audio", "type": "audio", "required": true}, | |
| {"id": "prompt", "label": "Prompt", "type": "text", "required": true}, | |
| {"id": "resolution", "label": "Resolution", "type": "text"}, | |
| {"id": "seed", "label": "Seed", "type": "text"} | |
| ], | |
| "outputs": [{"id": "out_0", "label": "Video", "type": "video", "output_index": 0}], | |
| "x": 700, | |
| "y": 80, | |
| "width": 240, | |
| "height": 190, | |
| "data": {} | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_video", | |
| "label": "Talking-Head Video", | |
| "role": "subject", | |
| "asset_type": "video", | |
| "inputs": [{"id": "in", "label": "Video", "type": "video"}], | |
| "outputs": [{"id": "out", "label": "Video", "type": "video"}], | |
| "x": 1020, | |
| "y": 90, | |
| "width": 240, | |
| "height": 120, | |
| "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| {"id": "e_image", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_avatar", "to_port_id": "image", "type": "image"}, | |
| {"id": "e_audio", "from_node_id": "ref_audio", "from_port_id": "out", "to_node_id": "op_avatar", "to_port_id": "audio", "type": "audio"}, | |
| {"id": "e_prompt", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_avatar", "to_port_id": "prompt", "type": "text"}, | |
| {"id": "e_resolution", "from_node_id": "ref_resolution", "from_port_id": "out", "to_node_id": "op_avatar", "to_port_id": "resolution", "type": "text"}, | |
| {"id": "e_seed", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_avatar", "to_port_id": "seed", "type": "text"}, | |
| {"id": "e_out", "from_node_id": "op_avatar", "from_port_id": "out_0", "to_node_id": "sub_video", "to_port_id": "in", "type": "video"} | |
| ] | |
| } | |