feat: Bump blockbuster version to 1.5.0 (#5292)
* Bump blockbuster version to 1.5.0 * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
201d6c7639
commit
c3f36b69a2
5 changed files with 36 additions and 9 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import asyncio
|
||||
|
||||
from loguru import logger
|
||||
|
||||
from langflow.custom.directory_reader import DirectoryReader
|
||||
|
|
@ -83,7 +85,7 @@ def build_custom_component_list_from_path(path: str):
|
|||
|
||||
async def abuild_custom_component_list_from_path(path: str):
|
||||
"""Build a list of custom components for the langchain from a given path."""
|
||||
file_list = load_files_from_path(path)
|
||||
file_list = await asyncio.to_thread(load_files_from_path, path)
|
||||
reader = DirectoryReader(path, compress_code_field=False)
|
||||
|
||||
valid_components, invalid_components = await abuild_and_validate_all_files(reader, file_list)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue