Fix: paddle ocr missing outlines (#13441)

### What problem does this PR solve?

Fix: paddle ocr missing outlines #13422

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Magicbook1108
2026-03-06 17:19:51 +08:00
committed by GitHub
parent 2504c3adde
commit 826af383b4

View File

@ -199,6 +199,7 @@ class PaddleOCRParser(RAGFlowPdfParser):
"""Initialize PaddleOCR parser."""
super().__init__()
self.outlines = []
self.api_url = api_url.rstrip("/") if api_url else os.getenv("PADDLEOCR_API_URL", "")
self.access_token = access_token or os.getenv("PADDLEOCR_ACCESS_TOKEN")
self.algorithm = algorithm