Download workflow.json from hmb/translation-comparison-workflow: direct link, hf CLI and curl.
- Browser
- Download file 3.83 kB
-
https://huggingface.co/spaces/hmb/translation-comparison-workflow/resolve/main/workflow.json
- Command line
-
hf download hf://spaces/hmb/translation-comparison-workflow/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/hmb/translation-comparison-workflow/resolve/main/workflow.json
3.83 kB
| { | |
| "schema_version": "2", | |
| "name": "translation-comparison", | |
| "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_opus_mt_en_de", | |
| "label": "opus-mt-en-de", | |
| "role": "operator", | |
| "kind": "model", | |
| "model_id": "Helsinki-NLP/opus-mt-en-de", | |
| "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_opus_mt_en_de_out_0", | |
| "label": "opus-mt-en-de", | |
| "role": "subject", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "opus-mt-en-de", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "opus-mt-en-de", | |
| "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_opus_mt_en_de", | |
| "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_opus_mt_en_de", | |
| "from_port_id": "out_0", | |
| "to_node_id": "sub_op_opus_mt_en_de_out_0", | |
| "to_port_id": "in", | |
| "type": "text" | |
| } | |
| ] | |
| } |