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

Function read_paper_content

autofigure/generator.py:244–252  ·  view source on GitHub ↗
(paper_path: str)

Source from the content-addressed store, hash-verified

242 return call_unified_llm(contents, api_key=api_key)
243
244def read_paper_content(paper_path: str) -> str:
245 try:
246 with open(paper_path, 'r', encoding='utf-8') as f:
247 content = f.read()
248 print(f"Successfully read paper content: {len(content)} characters")
249 return content
250 except Exception as e:
251 print(f"Failed to read paper file: {e}")
252 return ""
253
254def load_reference_figures(figure_paths: List[str]) -> List[Image.Image]:
255 reference_figures = []

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected