(in_data: dict)
| 33 | |
| 34 | |
| 35 | def _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 | |
| 45 | def _run_paper2ppt(in_data: dict) -> dict: |
no test coverage detected