MCPcopy
hub / github.com/sml2h3/ddddocr / initialize

Function initialize

ddddocr/api/routes.py:53–59  ·  view source on GitHub ↗

初始化并选择加载的模型类型

(request: InitializeRequest)

Source from the content-addressed store, hash-verified

51
52 @app.post("/initialize", response_model=APIResponse)
53 async def initialize(request: InitializeRequest):
54 """初始化并选择加载的模型类型"""
55 try:
56 result = service.initialize(request)
57 return APIResponse(success=True, message=result["message"], data=result)
58 except Exception as e:
59 return APIResponse(success=False, message=str(e))
60
61 @app.post("/switch-model", response_model=APIResponse)
62 async def switch_model(request: SwitchModelRequest):

Callers

nothing calls this directly

Calls 2

APIResponseClass · 0.85
initializeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…