{ "schema_version": "2", "name": "translation-comparison-workflow", "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" } ], "data": {} } ], "operators": [ { "id": "op_t5_base", "label": "t5-base", "role": "operator", "kind": "model", "model_id": "google-t5/t5-base", "pipeline_tag": "translation", "endpoint": "translation", "provider": "hf-inference", "inputs": [ { "id": "text", "label": "Text", "type": "text" }, { "id": "src_lang", "label": "Source Language", "type": "text", "required": false }, { "id": "tgt_lang", "label": "Target Language", "type": "text", "required": false } ], "outputs": [ { "id": "out_0", "label": "Translation", "type": "text", "output_index": 0 } ], "data": {} }, { "id": "op_t5_large", "label": "t5-large", "role": "operator", "kind": "model", "model_id": "google-t5/t5-large", "pipeline_tag": "translation", "endpoint": "translation", "provider": "hf-inference", "inputs": [ { "id": "text", "label": "Text", "type": "text" }, { "id": "src_lang", "label": "Source Language", "type": "text", "required": false }, { "id": "tgt_lang", "label": "Target Language", "type": "text", "required": false } ], "outputs": [ { "id": "out_0", "label": "Translation", "type": "text", "output_index": 0 } ], "data": {} } ], "subjects": [ { "id": "sub_op_t5_base_out_0", "label": "t5-base", "role": "subject", "asset_type": "text", "inputs": [ { "id": "in", "label": "t5-base", "type": "text" } ], "outputs": [ { "id": "out", "label": "t5-base", "type": "text" } ], "data": {} }, { "id": "sub_op_t5_large_out_0", "label": "t5-large", "role": "subject", "asset_type": "text", "inputs": [ { "id": "in", "label": "t5-large", "type": "text" } ], "outputs": [ { "id": "out", "label": "t5-large", "type": "text" } ], "data": {} } ], "edges": [ { "id": "e0", "from_node_id": "ref_text", "from_port_id": "out", "to_node_id": "op_t5_base", "to_port_id": "text", "type": "text" }, { "id": "e1", "from_node_id": "ref_text", "from_port_id": "out", "to_node_id": "op_t5_large", "to_port_id": "text", "type": "text" }, { "id": "e2", "from_node_id": "op_t5_base", "from_port_id": "out_0", "to_node_id": "sub_op_t5_base_out_0", "to_port_id": "in", "type": "text" }, { "id": "e3", "from_node_id": "op_t5_large", "from_port_id": "out_0", "to_node_id": "sub_op_t5_large_out_0", "to_port_id": "in", "type": "text" } ] }