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: simplify path construction in models_download_utils.py
myhlolid3b3ea0fa43d
diff --git a/mineru/utils/models_download_utils.py b/mineru/utils/models_download_utils.pyindex fc931db9..1b0299a1 100644--- a/mineru/utils/models_download_utils.py+++ b/mineru/utils/models_download_utils.py@@ -21,7 +21,7 @@ def auto_download_and_get_model_root_path(relative_path: str, repo_mode='pipelinroot_path = local_models_config.get(repo_mode, None)if not root_path:raise ValueError(f"Local path for repo_mode '{repo_mode}' is not configured.")- return os.path.join(root_path, relative_path.strip('/'))+ return root_path# 建立仓库模式到路径的映射repo_mapping = {