mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
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:
parent
5bb2ea51a5
commit
8d7144e6a6
@ -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("/"):
|
||||
|
Loading…
Reference in New Issue
Block a user