Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

fix: replace hardcoded model name with constant in batch_analyze.py

myhloli0298de844f1f
diff --git a/mineru/backend/pipeline/batch_analyze.py b/mineru/backend/pipeline/batch_analyze.py
index 61de7946..a94a9d66 100644
--- a/mineru/backend/pipeline/batch_analyze.py
+++ b/mineru/backend/pipeline/batch_analyze.py
@@ -340,7 +340,7 @@ class BatchAnalyze:
# Get OCR results for this language's images
ocr_model = atom_model_manager.get_atom_model(
- atom_model_name='ocr',
+ atom_model_name=AtomicModel.OCR,
det_db_box_thresh=0.3,
lang=lang
)