Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
Update pdf_extract_kit.py
ciaranfb6cb8b04841
diff --git a/magic_pdf/model/pdf_extract_kit.py b/magic_pdf/model/pdf_extract_kit.pyindex ec67e3ed..d6f07550 100644--- a/magic_pdf/model/pdf_extract_kit.py+++ b/magic_pdf/model/pdf_extract_kit.py@@ -393,7 +393,7 @@ class CustomPEKModel:elif int(res['category_id']) in [5]:table_res_list.append(res)- if torch.cuda.is_available():+ if torch.cuda.is_available() and self.device != 'cpu':properties = torch.cuda.get_device_properties(self.device)total_memory = properties.total_memory / (1024 ** 3) # 将字节转换为 GBif total_memory <= 10: