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

Function _run_pdf2ppt

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

Source from the content-addressed store, hash-verified

33
34
35def _run_pdf2ppt(in_data: dict) -> dict:
36 from fastapi_app.schemas import Paper2PPTRequest
37 from fastapi_app.workflow_adapters.wa_pdf2ppt import run_pdf2ppt_wf_api_local
38
39 req = Paper2PPTRequest.model_validate(in_data.get("request") or {})
40 result_path = _result_path_from_input(in_data)
41 response = asyncio.run(run_pdf2ppt_wf_api_local(req, result_path=result_path))
42 return {"success": True, "response": response.model_dump(mode="json")}
43
44
45def _run_paper2ppt(in_data: dict) -> dict:

Callers 1

mainFunction · 0.85

Calls 4

run_pdf2ppt_wf_api_localFunction · 0.90
_result_path_from_inputFunction · 0.85
getMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected