mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-06 23:15:53 +08:00
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…
x
Reference in New Issue
Block a user