diff --git a/magic_pdf/data/utils.py b/magic_pdf/data/utils.py index 9e6e3b9..2de01b3 100644 --- a/magic_pdf/data/utils.py +++ b/magic_pdf/data/utils.py @@ -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 diff --git a/magic_pdf/filter/__init__.py b/magic_pdf/filter/__init__.py index 9b1591c..bb6cb66 100644 --- a/magic_pdf/filter/__init__.py +++ b/magic_pdf/filter/__init__.py @@ -29,4 +29,3 @@ def classify(pdf_bytes: bytes) -> SupportedPdfParseMethod: return SupportedPdfParseMethod.TXT else: return SupportedPdfParseMethod.OCR - return SupportedPdfParseMethod.OCR diff --git a/magic_pdf/pdf_parse_union_core_v2_llm.py b/magic_pdf/pdf_parse_union_core_v2_llm.py index c86031f..371ceb5 100644 --- a/magic_pdf/pdf_parse_union_core_v2_llm.py +++ b/magic_pdf/pdf_parse_union_core_v2_llm.py @@ -854,6 +854,4 @@ def pdf_parse_union( if __name__ == '__main__': - pass -if __name__ == '__main__': - pass + pass \ No newline at end of file