abidlabs's picture
abidlabs HF Staff
Workflow from ML Intern
8c70df6 verified
Raw History Blame Contribute Delete
6.62 kB
{
"schema_version": "2",
"name": "ocr-model-comparison",
"runtime": {
"default": "client"
},
"references": [
{
"id": "ref_image",
"label": "Image",
"role": "reference",
"asset_type": "image",
"inputs": [
{
"id": "in",
"label": "Image",
"type": "image"
}
],
"outputs": [
{
"id": "out",
"label": "Image",
"type": "image"
}
],
"data": {}
},
{
"id": "ref_text",
"label": "Prompt",
"role": "reference",
"asset_type": "text",
"inputs": [
{
"id": "in",
"label": "Prompt",
"type": "text"
}
],
"outputs": [
{
"id": "out",
"label": "Prompt",
"type": "text"
}
],
"data": {}
}
],
"operators": [
{
"id": "op_qwen3_vl_8b_instruct",
"label": "Qwen3-VL-8B-Instruct",
"role": "operator",
"kind": "model",
"model_id": "Qwen/Qwen3-VL-8B-Instruct",
"pipeline_tag": "image-text-to-text",
"endpoint": "chat_completion",
"provider": "featherless-ai",
"inputs": [
{
"id": "image",
"label": "Image",
"type": "image"
},
{
"id": "text",
"label": "Prompt",
"type": "text"
}
],
"outputs": [
{
"id": "out_0",
"label": "Answer",
"type": "markdown",
"output_index": 0
}
],
"data": {}
},
{
"id": "op_unlimited_ocr",
"label": "Unlimited-OCR",
"role": "operator",
"kind": "space",
"space_id": "baidu/Unlimited-OCR",
"endpoint": "/run_ocr",
"inputs": [
{
"id": "in_0",
"label": "1st",
"type": "any",
"required": true
},
{
"id": "in_1",
"label": "2nd",
"type": "any",
"required": false,
"default_value": "gundam"
},
{
"id": "in_2",
"label": "3rd",
"type": "any",
"required": false,
"default_value": "document parsing."
}
],
"outputs": [
{
"id": "out_0",
"label": "1st",
"type": "any",
"output_index": 0
}
],
"data": {}
},
{
"id": "op_minicpm_ocr",
"label": "MiniCPM-OCR",
"role": "operator",
"kind": "space",
"space_id": "openbmb/MiniCPM-OCR",
"endpoint": "/run",
"inputs": [
{
"id": "in_0",
"label": "Image",
"type": "image",
"required": true
},
{
"id": "in_1",
"label": "Auto-rotate",
"type": "boolean",
"required": false,
"default_value": true
},
{
"id": "in_2",
"label": "Recognize seals",
"type": "boolean",
"required": false,
"default_value": true
},
{
"id": "in_3",
"label": "Recognize charts",
"type": "boolean",
"required": false,
"default_value": true
},
{
"id": "in_4",
"label": "Language",
"type": "text",
"required": false,
"default_value": "en"
}
],
"outputs": [
{
"id": "out_0",
"label": "value_16",
"type": "html",
"output_index": 0
},
{
"id": "out_1",
"label": "value_17",
"type": "markdown",
"output_index": 1
},
{
"id": "out_2",
"label": "value_18",
"type": "text",
"output_index": 2
}
],
"data": {}
}
],
"subjects": [
{
"id": "sub_op_qwen3_vl_8b_instruct_out_0",
"label": "Qwen3-VL-8B-Instruct",
"role": "subject",
"asset_type": "markdown",
"inputs": [
{
"id": "in",
"label": "Qwen3-VL-8B-Instruct",
"type": "markdown"
}
],
"outputs": [
{
"id": "out",
"label": "Qwen3-VL-8B-Instruct",
"type": "markdown"
}
],
"data": {}
},
{
"id": "sub_op_unlimited_ocr_out_0",
"label": "Unlimited-OCR",
"role": "subject",
"asset_type": "any",
"inputs": [
{
"id": "in",
"label": "Unlimited-OCR",
"type": "any"
}
],
"outputs": [
{
"id": "out",
"label": "Unlimited-OCR",
"type": "any"
}
],
"data": {}
},
{
"id": "sub_op_minicpm_ocr_out_0",
"label": "MiniCPM-OCR",
"role": "subject",
"asset_type": "html",
"inputs": [
{
"id": "in",
"label": "MiniCPM-OCR",
"type": "html"
}
],
"outputs": [
{
"id": "out",
"label": "MiniCPM-OCR",
"type": "html"
}
],
"data": {}
}
],
"edges": [
{
"id": "e0",
"from_node_id": "ref_image",
"from_port_id": "out",
"to_node_id": "op_qwen3_vl_8b_instruct",
"to_port_id": "image",
"type": "image"
},
{
"id": "e1",
"from_node_id": "ref_image",
"from_port_id": "out",
"to_node_id": "op_unlimited_ocr",
"to_port_id": "in_0",
"type": "image"
},
{
"id": "e2",
"from_node_id": "ref_image",
"from_port_id": "out",
"to_node_id": "op_minicpm_ocr",
"to_port_id": "in_0",
"type": "image"
},
{
"id": "e3",
"from_node_id": "ref_text",
"from_port_id": "out",
"to_node_id": "op_qwen3_vl_8b_instruct",
"to_port_id": "text",
"type": "text"
},
{
"id": "e4",
"from_node_id": "op_qwen3_vl_8b_instruct",
"from_port_id": "out_0",
"to_node_id": "sub_op_qwen3_vl_8b_instruct_out_0",
"to_port_id": "in",
"type": "markdown"
},
{
"id": "e5",
"from_node_id": "op_unlimited_ocr",
"from_port_id": "out_0",
"to_node_id": "sub_op_unlimited_ocr_out_0",
"to_port_id": "in",
"type": "any"
},
{
"id": "e6",
"from_node_id": "op_minicpm_ocr",
"from_port_id": "out_0",
"to_node_id": "sub_op_minicpm_ocr_out_0",
"to_port_id": "in",
"type": "html"
}
]
}