From 9e3c3c7ef8bb9808b763749c7a0c8e150e3ef842 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 30 Mar 2024 20:21:56 -0300 Subject: [PATCH] Refactor file path configuration in FileComponent --- src/backend/base/langflow/components/data/File.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/components/data/File.py b/src/backend/base/langflow/components/data/File.py index fe3b08066..70fe1dccc 100644 --- a/src/backend/base/langflow/components/data/File.py +++ b/src/backend/base/langflow/components/data/File.py @@ -13,8 +13,8 @@ class FileComponent(CustomComponent): def build_config(self) -> Dict[str, Any]: return { - "paths": { - "display_name": "Paths", + "path": { + "display_name": "Path", "field_type": "file", "file_types": TEXT_FILE_TYPES, "info": f"Supported file types: {', '.join(TEXT_FILE_TYPES)}",