fix baiducloud directory loader import file loader (#12924)

**Issue:** 
fix baiducloud BOS directory loader imports its file loader

---------

Co-authored-by: wemysschen <root@icoding-cwx.bcc-szzj.baidu.com>
This commit is contained in:
wemysschen 2023-11-06 23:52:31 +08:00 committed by GitHub
parent 5bb2ea51a5
commit 8d7144e6a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ class BaiduBOSDirectoryLoader(BaseLoader):
if response.is_truncated or contents_len < int(str(response.max_keys)):
break
marker = response.next_marker
from baidu_bos_file import BaiduBOSFileLoader
from langchain.document_loaders.baiducloud_bos_file import BaiduBOSFileLoader
for content in contents:
if str(content.key).endswith("/"):