Change template to private attribute and simplify imports (#101)

---------

Co-authored-by: ian <ian@cinnamon.is>
This commit is contained in:
Duc Nguyen (john)
2023-12-08 18:10:34 +07:00
committed by GitHub
parent 1f927d3391
commit da0ac1d69f
13 changed files with 31 additions and 39 deletions

View File

@@ -1,6 +1,6 @@
from abc import abstractmethod
from theflow.base import Function
from theflow import Function, Node, Param, lazy
from kotaemon.base.schema import Document
@@ -35,3 +35,6 @@ class BaseComponent(Function):
def run(self, *args, **kwargs) -> Document | list[Document] | None:
"""Run the component."""
...
__all__ = ["BaseComponent", "Param", "Node", "lazy"]