bug fix
This commit is contained in:
parent
6c4ef26e9a
commit
d6dce95682
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue