Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion magic_pdf/data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ def load_images_from_pdf(pdf_bytes: bytes, dpi=200, start_page_id=0, end_page_id

images.append(img_dict)
return images
return images
1 change: 0 additions & 1 deletion magic_pdf/filter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ def classify(pdf_bytes: bytes) -> SupportedPdfParseMethod:
return SupportedPdfParseMethod.TXT
else:
return SupportedPdfParseMethod.OCR
return SupportedPdfParseMethod.OCR
4 changes: 1 addition & 3 deletions magic_pdf/pdf_parse_union_core_v2_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,4 @@ def pdf_parse_union(


if __name__ == '__main__':

Copilot AI Jun 30, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Since the __main__ block is a no-op (pass), consider removing it entirely to reduce dead code.

Copilot uses AI. Check for mistakes.
pass
if __name__ == '__main__':
pass
pass