Merge branch 'chatchat-space:dev' into dev

This commit is contained in:
liunux4odoo 2023-09-01 14:37:32 +08:00 committed by GitHub
commit 1db8a07765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class KnowledgeFile:
print(f"{self.document_loader_name} used for {self.filepath}")
try:
if self.document_loader_name in []:
if self.document_loader_name in ["RapidOCRPDFLoader", "RapidOCRLoader"]:
document_loaders_module = importlib.import_module('document_loaders')
else:
document_loaders_module = importlib.import_module('langchain.document_loaders')