Explorar o código

fix(修复MinerU组件导入路径): 修改MinerU组件的导入路径以确保正确加载

zhch158_admin hai 1 semana
pai
achega
fadba9a24b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ocr_utils/pdf_utils.py

+ 1 - 1
ocr_utils/pdf_utils.py

@@ -53,7 +53,7 @@ from .pdf_image_rendering import (
 
 
 # 导入 MinerU 组件
 # 导入 MinerU 组件
 try:
 try:
-    from mineru.utils.pdf_classify import classify as pdf_classify
+    from .pdf_classify import classify as pdf_classify
     from mineru.utils.enum_class import ImageType
     from mineru.utils.enum_class import ImageType
     MINERU_AVAILABLE = True
     MINERU_AVAILABLE = True
 except ImportError:
 except ImportError: