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}")
|
print(f"{self.document_loader_name} used for {self.filepath}")
|
||||||
try:
|
try:
|
||||||
if self.document_loader_name in []:
|
if self.document_loader_name in ["RapidOCRPDFLoader", "RapidOCRLoader"]:
|
||||||
document_loaders_module = importlib.import_module('document_loaders')
|
document_loaders_module = importlib.import_module('document_loaders')
|
||||||
else:
|
else:
|
||||||
document_loaders_module = importlib.import_module('langchain.document_loaders')
|
document_loaders_module = importlib.import_module('langchain.document_loaders')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue