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:
Christophe Bornet 2024-12-17 23:26:18 +01:00 • committed by GitHub
commit c3f36b69a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 36 additions and 9 deletions

View file

@ -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)