Refactor directory reader component
This commit is contained in:
parent
3175001891
commit
a8f9d4bb4d
1 changed files with 2 additions and 2 deletions
|
|
@ -2,9 +2,10 @@ import ast
|
|||
import os
|
||||
import zlib
|
||||
|
||||
from langflow.interface.custom.custom_component import CustomComponent
|
||||
from loguru import logger
|
||||
|
||||
from langflow.interface.custom.custom_component import CustomComponent
|
||||
|
||||
|
||||
class CustomComponentPathValueError(ValueError):
|
||||
pass
|
||||
|
|
@ -264,7 +265,6 @@ class DirectoryReader:
|
|||
}
|
||||
menu_result["components"].append(component_info)
|
||||
|
||||
logger.debug(f"Component info: {component_info}")
|
||||
if menu_result not in response["menu"]:
|
||||
response["menu"].append(menu_result)
|
||||
logger.debug("-------------------- Component menu list built --------------------")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue