Download workflow.json from akhaliq/G-star: direct link, hf CLI and curl.
- Browser
- Download file 2.79 kB
-
https://huggingface.co/spaces/akhaliq/G-star/resolve/main/workflow.json
- Command line
-
hf download hf://spaces/akhaliq/G-star/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/akhaliq/G-star/resolve/main/workflow.json
2.79 kB
| { | |
| "schema_version": "2", | |
| "name": "G-star Workflow", | |
| "references": [ | |
| { | |
| "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": 40, | |
| "y": 60, | |
| "width": 300, | |
| "height": 160, | |
| "data": {"out": "A lighthouse on a cliff at dusk, film still, cold light raking across the rocks, restrained palette of slate and amber."} | |
| }, | |
| { | |
| "id": "ref_size", | |
| "label": "Size", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 40, | |
| "y": 260, | |
| "width": 190, | |
| "height": 90, | |
| "data": {"out": "1:1 · 1024×1024"} | |
| }, | |
| { | |
| "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": 250, | |
| "y": 260, | |
| "width": 130, | |
| "height": 90, | |
| "data": {"out": "42"} | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_generate", | |
| "label": "G-star Generate", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "gstar_generate", | |
| "inputs": [ | |
| {"id": "prompt", "label": "Prompt", "type": "text", "required": true}, | |
| {"id": "size", "label": "Size", "type": "text"}, | |
| {"id": "seed", "label": "Seed", "type": "text"} | |
| ], | |
| "outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}], | |
| "x": 440, | |
| "y": 120, | |
| "width": 230, | |
| "height": 170, | |
| "data": {} | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_generated", | |
| "label": "Generated Image", | |
| "role": "subject", | |
| "asset_type": "image", | |
| "inputs": [{"id": "in", "label": "Image", "type": "image"}], | |
| "outputs": [{"id": "out", "label": "Image", "type": "image"}], | |
| "x": 760, | |
| "y": 130, | |
| "width": 230, | |
| "height": 110, | |
| "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| {"id": "e_prompt", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "prompt", "type": "text"}, | |
| {"id": "e_size", "from_node_id": "ref_size", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "size", "type": "text"}, | |
| {"id": "e_seed", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "seed", "type": "text"}, | |
| {"id": "e_gen", "from_node_id": "op_generate", "from_port_id": "out_0", "to_node_id": "sub_generated", "to_port_id": "in", "type": "image"} | |
| ] | |
| } | |