Skip to content

Commit

Permalink
fix baiducloud directory loader import file loader (langchain-ai#12924)
Browse files Browse the repository at this point in the history
**Issue:** 
fix baiducloud BOS directory loader imports its file loader

---------

Co-authored-by: wemysschen <[email protected]>
  • Loading branch information
2 people authored and xieqihui committed Nov 21, 2023
1 parent ec860b5 commit 7f69572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def lazy_load(self) -> Iterator[Document]:
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("/"):
Expand Down

0 comments on commit 7f69572

Please sign in to comment.