From 8f88db0c2ea239c4c156b8baf64e01d21a8d96ef Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 21 Mar 2024 17:08:08 -0300 Subject: [PATCH] Update path to paths in FileComponent --- src/backend/langflow/components/data/File.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/langflow/components/data/File.py b/src/backend/langflow/components/data/File.py index f82870d96..5d0b2ee56 100644 --- a/src/backend/langflow/components/data/File.py +++ b/src/backend/langflow/components/data/File.py @@ -11,8 +11,8 @@ class FileComponent(CustomComponent): def build_config(self) -> Dict[str, Any]: return { - "path": { - "display_name": "Path", + "paths": { + "display_name": "Paths", "field_type": "file", "file_types": TEXT_FILE_TYPES, "info": f"Supported file types: {', '.join(TEXT_FILE_TYPES)}", @@ -39,7 +39,7 @@ class FileComponent(CustomComponent): self, paths: List[str], silent_errors: bool = False, - ) -> Record: + ) -> List[Record]: records = [self.load_file(path, silent_errors) for path in paths] self.status = records return records