MCPcopy
hub / github.com/baidu/Unlimited-OCR / build_content

Function build_content

infer.py:73–74  ·  view source on GitHub ↗
(image_path: str)

Source from the content-addressed store, hash-verified

71
72
73def build_content(image_path: str) -> list[dict]:
74 return [{"type": "text", "text": PROMPT}, encode_image(image_path)]
75
76
77def server_ready(server_url: str) -> bool:

Callers 1

infer_oneFunction · 0.85

Calls 1

encode_imageFunction · 0.85

Tested by

no test coverage detected