🔨 refactor(endpoints.py): rename 'load_custom_component_from_path' module to 'directory_loader' for better clarity and consistency

🔨 refactor(types.py): rename 'load_custom_component_from_path' module to 'directory_loader' for better clarity and consistency
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-25 10:05:26 -03:00
commit eece41a69a
3 changed files with 3 additions and 3 deletions

View file

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

View file

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