Create timestamped output directory
(args)
| 155 | |
| 156 | |
| 157 | def create_output_dir(args) -> Path: |
| 158 | """Create timestamped output directory""" |
| 159 | if args.output_dir: |
| 160 | output_dir = Path(args.output_dir) |
| 161 | else: |
| 162 | project_root = get_project_root() |
| 163 | timestamp = int(time.time()) |
| 164 | output_dir = project_root / "outputs" / "cli" / "image2ppt" / str(timestamp) |
| 165 | |
| 166 | output_dir.mkdir(parents=True, exist_ok=True) |
| 167 | return output_dir |
| 168 | |
| 169 | |
| 170 | async def run_image2ppt_workflow(args, input_path: Path, output_dir: Path) -> Paper2PPTResponse: |
no test coverage detected