MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / load_reference_figures

Function load_reference_figures

autofigure/generator.py:254–264  ·  view source on GitHub ↗
(figure_paths: List[str])

Source from the content-addressed store, hash-verified

252 return ""
253
254def 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
266def get_initial_prompt_template(topic: str, content: str, output_format: str = None) -> str:
267 if topic not in CONFIG['SUPPORTED_TOPICS']:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected