ai_media_studio / workflow.json
ysharma's picture
ysharma HF Staff
Upload 2 files
460dbfa verified
Raw
History Blame Contribute Delete
8.49 kB
{
"schema_version": "2",
"name": "AI Media Studio",
"references": [
{
"id": "ref_prompt",
"role": "reference",
"label": "Sticker prompt",
"asset_type": "text",
"inputs": [
{
"id": "in",
"label": "Sticker prompt",
"type": "text"
}
],
"outputs": [
{
"id": "out",
"label": "Sticker prompt",
"type": "text"
}
],
"data": {
"out": "a plush robot mascot, kawaii sticker, thick outline"
},
"x": 40,
"y": 40,
"width": 210,
"height": 90
},
{
"id": "ref_topic",
"role": "reference",
"label": "Episode topic",
"asset_type": "text",
"inputs": [
{
"id": "in",
"label": "Episode topic",
"type": "text"
}
],
"outputs": [
{
"id": "out",
"label": "Episode topic",
"type": "text"
}
],
"data": {
"out": "why owls are nature's ninjas"
},
"x": 40,
"y": 240,
"width": 210,
"height": 90
}
],
"operators": [
{
"id": "op_flux",
"role": "operator",
"kind": "model",
"model_id": "black-forest-labs/FLUX.1-schnell",
"pipeline_tag": "text-to-image",
"endpoint": "text_to_image",
"label": "FLUX.1-schnell",
"inputs": [
{
"id": "prompt",
"label": "Prompt",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "Image",
"type": "image",
"output_index": 0
}
],
"data": {},
"x": 300,
"y": 40,
"width": 230,
"height": 110
},
{
"id": "op_bg",
"role": "operator",
"kind": "space",
"space_id": "hf-applications/background-removal",
"endpoint": "/image",
"label": "background-removal",
"inputs": [
{
"id": "in_image",
"label": "Image",
"type": "image",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "Cutout",
"type": "image",
"output_index": 1
}
],
"data": {},
"x": 580,
"y": 40,
"width": 230,
"height": 110
},
{
"id": "op_line",
"role": "operator",
"kind": "fn",
"fn": "make_line",
"label": "make_line",
"inputs": [
{
"id": "in_topic",
"label": "topic",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "line",
"type": "text"
}
],
"data": {},
"x": 300,
"y": 240,
"width": 220,
"height": 100
},
{
"id": "op_tts",
"role": "operator",
"kind": "space",
"space_id": "mrfakename/MeloTTS",
"endpoint": "/synthesize",
"label": "MeloTTS",
"inputs": [
{
"id": "in_text",
"label": "text",
"type": "text",
"required": true
},
{
"id": "in_speaker",
"label": "speaker",
"type": "text"
},
{
"id": "in_speed",
"label": "speed",
"type": "number"
},
{
"id": "in_language",
"label": "language",
"type": "text"
}
],
"outputs": [
{
"id": "out_0",
"label": "Audio",
"type": "audio",
"output_index": 0
}
],
"data": {
"in_speaker": "EN-US",
"in_speed": 1.0,
"in_language": "EN"
},
"x": 580,
"y": 240,
"width": 230,
"height": 170
},
{
"id": "op_prompt",
"role": "operator",
"kind": "fn",
"fn": "make_prompt",
"label": "make_prompt",
"inputs": [
{
"id": "in_topic",
"label": "topic",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "prompt",
"type": "text"
}
],
"data": {},
"x": 300,
"y": 440,
"width": 220,
"height": 100
},
{
"id": "op_llm",
"role": "operator",
"kind": "model",
"model_id": "Qwen/Qwen2.5-7B-Instruct",
"pipeline_tag": "text-generation",
"label": "Qwen2.5-7B",
"inputs": [
{
"id": "in_prompt",
"label": "prompt",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "text",
"type": "text",
"output_index": 0
}
],
"data": {},
"x": 580,
"y": 440,
"width": 230,
"height": 110
}
],
"subjects": [
{
"id": "sub_sticker",
"role": "subject",
"label": "Sticker",
"asset_type": "image",
"inputs": [
{
"id": "in",
"label": "Sticker",
"type": "image"
}
],
"outputs": [
{
"id": "out",
"label": "Sticker",
"type": "image"
}
],
"data": {},
"x": 860,
"y": 40,
"width": 230,
"height": 200
},
{
"id": "sub_audio",
"role": "subject",
"label": "Voiceover",
"asset_type": "audio",
"inputs": [
{
"id": "in",
"label": "Voiceover",
"type": "audio"
}
],
"outputs": [
{
"id": "out",
"label": "Voiceover",
"type": "audio"
}
],
"data": {},
"x": 860,
"y": 240,
"width": 230,
"height": 200
},
{
"id": "sub_blurb",
"role": "subject",
"label": "Episode title",
"asset_type": "text",
"inputs": [
{
"id": "in",
"label": "Episode title",
"type": "text"
}
],
"outputs": [
{
"id": "out",
"label": "Episode title",
"type": "text"
}
],
"data": {},
"x": 860,
"y": 440,
"width": 230,
"height": 200
}
],
"edges": [
{
"id": "e1",
"from_node_id": "ref_prompt",
"from_port_id": "out",
"to_node_id": "op_flux",
"to_port_id": "prompt",
"type": "text"
},
{
"id": "e2",
"from_node_id": "op_flux",
"from_port_id": "out_0",
"to_node_id": "op_bg",
"to_port_id": "in_image",
"type": "image"
},
{
"id": "e3",
"from_node_id": "op_bg",
"from_port_id": "out_0",
"to_node_id": "sub_sticker",
"to_port_id": "in",
"type": "image"
},
{
"id": "e4",
"from_node_id": "ref_topic",
"from_port_id": "out",
"to_node_id": "op_line",
"to_port_id": "in_topic",
"type": "text"
},
{
"id": "e5",
"from_node_id": "op_line",
"from_port_id": "out_0",
"to_node_id": "op_tts",
"to_port_id": "in_text",
"type": "text"
},
{
"id": "e6",
"from_node_id": "op_tts",
"from_port_id": "out_0",
"to_node_id": "sub_audio",
"to_port_id": "in",
"type": "audio"
},
{
"id": "e7",
"from_node_id": "ref_topic",
"from_port_id": "out",
"to_node_id": "op_prompt",
"to_port_id": "in_topic",
"type": "text"
},
{
"id": "e8",
"from_node_id": "op_prompt",
"from_port_id": "out_0",
"to_node_id": "op_llm",
"to_port_id": "in_prompt",
"type": "text"
},
{
"id": "e9",
"from_node_id": "op_llm",
"from_port_id": "out_0",
"to_node_id": "sub_blurb",
"to_port_id": "in",
"type": "text"
}
]
}