Skip to content

Commit 010b9ae

Browse files
fix: delete useless code
1 parent 35b7b8f commit 010b9ae

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

graphgen/models/reader/pdf_reader.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,3 @@ def _check_bin() -> None:
184184
"MinerU is not installed or not found in PATH. Please install it from pip: \n"
185185
"pip install -U 'mineru[core]'"
186186
) from exc
187-
188-
189-
if __name__ == "__main__":
190-
# Simple test
191-
sample_pdf = "resources/input_examples/pdf_demo.pdf"
192-
parser = MinerUParser()
193-
blocks = parser.parse_pdf(
194-
sample_pdf, device="cpu", method="auto", output_dir="cache"
195-
)
196-
print(f"Parsed {len(blocks)} blocks from {sample_pdf}")

0 commit comments

Comments
 (0)