Skip to content

Commit

Permalink
Report TOC extractions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-piles committed Apr 30, 2024
1 parent c0002ac commit 14454be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def get_toc(file: UploadFile = File(...)):
pdf_path = pdf_content_to_pdf_path(file.file.read())
pdf_segmentation = extract_paragraphs(pdf_path)
toc = TOC(pdf_segmentation)
logger.info(f'Calculated TOC for {file.filename}')
logger.info(f"Calculated TOC for {file.filename}")
return toc.to_dict()
except Exception:
logger.error(f"Error extracting TOC for {filename}", exc_info=1)
Expand Down

0 comments on commit 14454be

Please sign in to comment.