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
fix(magic_pdf): add warning for Lite model usage in doc analysis
myhloli5be6ee8fce3d
diff --git a/magic_pdf/model/doc_analyze_by_custom_model.py b/magic_pdf/model/doc_analyze_by_custom_model.pyindex d6916e74..7280d286 100644--- a/magic_pdf/model/doc_analyze_by_custom_model.py+++ b/magic_pdf/model/doc_analyze_by_custom_model.py@@ -68,6 +68,8 @@ def custom_model_init(ocr: bool = False, show_log: bool = False):model = Noneif model_config.__model_mode__ == "lite":+ logger.warning("The Lite mode is provided for developers to conduct testing only, and the output quality is "+ "not guaranteed to be reliable.")model = MODEL.Paddleelif model_config.__model_mode__ == "full":model = MODEL.PEK