Create timestamped output directory
(args)
| 196 | |
| 197 | |
| 198 | def create_output_dir(args) -> Path: |
| 199 | """Create timestamped output directory""" |
| 200 | if args.output_dir: |
| 201 | output_dir = Path(args.output_dir) |
| 202 | else: |
| 203 | project_root = get_project_root() |
| 204 | timestamp = int(time.time()) |
| 205 | output_dir = project_root / "outputs" / "cli" / "paper2ppt" / str(timestamp) |
| 206 | |
| 207 | output_dir.mkdir(parents=True, exist_ok=True) |
| 208 | return output_dir |
| 209 | |
| 210 | |
| 211 | async def run_paper2ppt_workflow(args, input_content: str, input_type: str, output_dir: Path) -> Paper2PPTResponse: |
no test coverage detected