MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _run_paper2figure

Function _run_paper2figure

script/heavy_workflow_worker.py:25–32  ·  view source on GitHub ↗
(in_data: dict)

Source from the content-addressed store, hash-verified

23
24
25def _run_paper2figure(in_data: dict) -> dict:
26 from fastapi_app.schemas import Paper2FigureRequest
27 from fastapi_app.workflow_adapters.wa_paper2figure import run_paper2figure_wf_api_local
28
29 req = Paper2FigureRequest.model_validate(in_data.get("request") or {})
30 result_path = _result_path_from_input(in_data)
31 response = asyncio.run(run_paper2figure_wf_api_local(req, result_path=result_path))
32 return {"success": True, "response": response.model_dump(mode="json")}
33
34
35def _run_pdf2ppt(in_data: dict) -> dict:

Callers 1

mainFunction · 0.85

Calls 4

_result_path_from_inputFunction · 0.85
getMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected