From eece41a69a65c29e4de0580855a1972132c5ce30 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 25 Jul 2023 10:05:26 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20refactor(endpoints.py):=20rename?= =?UTF-8?q?=20'load=5Fcustom=5Fcomponent=5Ffrom=5Fpath'=20module=20to=20'd?= =?UTF-8?q?irectory=5Floader'=20for=20better=20clarity=20and=20consistency?= =?UTF-8?q?=20=F0=9F=94=A8=20refactor(types.py):=20rename=20'load=5Fcustom?= =?UTF-8?q?=5Fcomponent=5Ffrom=5Fpath'=20module=20to=20'directory=5Floader?= =?UTF-8?q?'=20for=20better=20clarity=20and=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/endpoints.py | 4 ++-- ...load_custom_component_from_path.py => directory_loader.py} | 0 src/backend/langflow/interface/types.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/backend/langflow/interface/custom/{load_custom_component_from_path.py => directory_loader.py} (100%) diff --git a/src/backend/langflow/api/v1/endpoints.py b/src/backend/langflow/api/v1/endpoints.py index 618c9777b..181b21dba 100644 --- a/src/backend/langflow/api/v1/endpoints.py +++ b/src/backend/langflow/api/v1/endpoints.py @@ -11,7 +11,7 @@ from fastapi import APIRouter, Depends, HTTPException, UploadFile from langflow.interface.custom.custom_component import CustomComponent -from langflow.interface.custom.load_custom_component_from_path import ( +from langflow.interface.custom.directory_loader import ( CustomComponentPathValueError, ) @@ -74,7 +74,7 @@ def get_load_custom_component_from_path(path: str): @router.get("/load_custom_component_from_path_TEST") def get_load_custom_component_from_path_test(path: str): - from langflow.interface.custom.load_custom_component_from_path import ( + from langflow.interface.custom.directory_loader import ( DirectoryReader, ) diff --git a/src/backend/langflow/interface/custom/load_custom_component_from_path.py b/src/backend/langflow/interface/custom/directory_loader.py similarity index 100% rename from src/backend/langflow/interface/custom/load_custom_component_from_path.py rename to src/backend/langflow/interface/custom/directory_loader.py diff --git a/src/backend/langflow/interface/types.py b/src/backend/langflow/interface/types.py index a58957e01..064f63b79 100644 --- a/src/backend/langflow/interface/types.py +++ b/src/backend/langflow/interface/types.py @@ -21,7 +21,7 @@ from langflow.template.field.base import TemplateField from langflow.template.frontend_node.tools import CustomComponentNode from langflow.interface.retrievers.base import retriever_creator -from langflow.interface.custom.load_custom_component_from_path import DirectoryReader +from langflow.interface.custom.directory_loader import DirectoryReader from langflow.utils.logger import logger import re import warnings