(in_data: dict)
| 23 | |
| 24 | |
| 25 | def _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 | |
| 35 | def _run_pdf2ppt(in_data: dict) -> dict: |
no test coverage detected