(figure_paths: List[str])
| 252 | return "" |
| 253 | |
| 254 | def load_reference_figures(figure_paths: List[str]) -> List[Image.Image]: |
| 255 | reference_figures = [] |
| 256 | for i, path in enumerate(figure_paths): |
| 257 | try: |
| 258 | img = Image.open(path) |
| 259 | reference_figures.append(img) |
| 260 | print(f"Successfully loaded reference figure {i+1}: {path}") |
| 261 | except Exception as e: |
| 262 | print(f"Failed to load reference figure {path}: {e}") |
| 263 | |
| 264 | return reference_figures |
| 265 | |
| 266 | def get_initial_prompt_template(topic: str, content: str, output_format: str = None) -> str: |
| 267 | if topic not in CONFIG['SUPPORTED_TOPICS']: |
no outgoing calls
no test coverage detected