hmb's picture
hmb HF Staff
Update workflow.json
26fd09c verified
Raw
History Blame Contribute Delete
3.15 kB
{
"schema_version": "2",
"name": "HF Paper → Podcast",
"runtime": { "default": "client" },
"references": [
{
"id": "ref-url",
"label": "Paper URL or ID",
"role": "reference",
"asset_type": "text",
"inputs": [{ "id": "in", "label": "URL", "type": "text" }],
"outputs": [{ "id": "out", "label": "URL", "type": "text" }],
"x": 60, "y": 200, "width": 220, "height": 120, "data": {}
}
],
"operators": [
{
"id": "op-fetch",
"label": "Fetch Paper",
"role": "operator",
"kind": "fn",
"fn": "fetch_paper",
"inputs": [{ "id": "in_0", "label": "url", "type": "text", "required": true }],
"outputs": [{ "id": "out_0", "label": "text", "type": "text", "output_index": 0 }],
"x": 340, "y": 200, "width": 220, "height": 120, "data": {}
},
{
"id": "op-llm",
"label": "Rewrite for Audio",
"role": "operator",
"kind": "model",
"model_id": "meta-llama/Llama-3.1-8B-Instruct",
"pipeline_tag": "text-generation",
"inputs": [{ "id": "in_0", "label": "prompt", "type": "text", "required": true }],
"outputs": [{ "id": "out_0", "label": "summary", "type": "text", "output_index": 0 }],
"x": 620, "y": 200, "width": 220, "height": 120, "data": {}
},
{
"id": "op-tts",
"label": "Text to Speech",
"role": "operator",
"kind": "model",
"model_id": "facebook/mms-tts-eng",
"pipeline_tag": "text-to-speech",
"inputs": [{ "id": "in_0", "label": "text", "type": "text", "required": true }],
"outputs": [{ "id": "out_0", "label": "audio", "type": "audio", "output_index": 0 }],
"x": 900, "y": 200, "width": 220, "height": 120, "data": {}
}
],
"subjects": [
{
"id": "subj-text",
"label": "Summary",
"role": "subject",
"asset_type": "text",
"inputs": [{ "id": "in", "label": "text", "type": "text" }],
"outputs": [{ "id": "out", "label": "text", "type": "text" }],
"x": 1180, "y": 80, "width": 280, "height": 180, "data": {}
},
{
"id": "subj-audio",
"label": "Podcast Clip",
"role": "subject",
"asset_type": "audio",
"inputs": [{ "id": "in", "label": "audio", "type": "audio" }],
"outputs": [{ "id": "out", "label": "audio", "type": "audio" }],
"x": 1180, "y": 320, "width": 280, "height": 180, "data": {}
}
],
"edges": [
{ "id": "e1", "from_node_id": "ref-url", "from_port_id": "out", "to_node_id": "op-fetch", "to_port_id": "in_0", "type": "text" },
{ "id": "e2", "from_node_id": "op-fetch", "from_port_id": "out_0", "to_node_id": "op-llm", "to_port_id": "in_0", "type": "text" },
{ "id": "e3", "from_node_id": "op-llm", "from_port_id": "out_0", "to_node_id": "op-tts", "to_port_id": "in_0", "type": "text" },
{ "id": "e4", "from_node_id": "op-llm", "from_port_id": "out_0", "to_node_id": "subj-text", "to_port_id": "in", "type": "text" },
{ "id": "e5", "from_node_id": "op-tts", "from_port_id": "out_0", "to_node_id": "subj-audio", "to_port_id": "in", "type": "audio" }
],
"view": { "default": "canvas" }
}