openjev / workflow.json
akhaliq's picture
akhaliq HF Staff
Prefill reference port values so the pipeline runs on first click
12d439e
Raw History Blame Contribute Delete
2.15 kB
{
"schema_version": "2",
"name": "openjev NLI",
"runtime": {"default": "client"},
"references": [
{
"id": "ref_premise",
"label": "Premise",
"role": "reference",
"asset_type": "text",
"data": {"out": "The bird is 0.05 below the centre of the gap."},
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 60, "y": 80
},
{
"id": "ref_hypothesis",
"label": "Hypothesis",
"role": "reference",
"asset_type": "text",
"data": {"out": "The bird is below the centre of the gap."},
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 60, "y": 320
}
],
"operators": [
{
"id": "op_classify",
"label": "jev-classify",
"role": "operator",
"kind": "fn",
"fn": "jev-classify",
"inputs": [
{"id": "premise", "label": "Premise", "type": "text", "required": true},
{"id": "hypothesis", "label": "Hypothesis", "type": "text", "required": true}
],
"outputs": [{"id": "out_0", "label": "Result", "type": "text", "output_index": 0}],
"x": 460, "y": 180
}
],
"subjects": [
{
"id": "sub_result",
"label": "NLI Result",
"role": "subject",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 840, "y": 200
}
],
"edges": [
{
"id": "e1",
"from_node_id": "ref_premise", "from_port_id": "out",
"to_node_id": "op_classify", "to_port_id": "premise",
"type": "text"
},
{
"id": "e2",
"from_node_id": "ref_hypothesis", "from_port_id": "out",
"to_node_id": "op_classify", "to_port_id": "hypothesis",
"type": "text"
},
{
"id": "e3",
"from_node_id": "op_classify", "from_port_id": "out_0",
"to_node_id": "sub_result", "to_port_id": "in",
"type": "text"
}
],
"view": {"default": "canvas"}
}