Fix components update and tests
This commit is contained in:
parent
12b3a9b717
commit
1775fee61f
15 changed files with 237 additions and 158 deletions
|
|
@ -1,8 +1,8 @@
|
|||
from langflow.custom import CustomComponent
|
||||
from langflow.custom import Component
|
||||
from langflow.template.field.base import Input, Output
|
||||
|
||||
|
||||
class MultipleOutputsComponent(CustomComponent):
|
||||
class MultipleOutputsComponent(Component):
|
||||
inputs = [
|
||||
Input(display_name="Input", name="input", field_type=str),
|
||||
Input(display_name="Number", name="number", field_type=int),
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from langflow.custom import CustomComponent
|
||||
from langflow.custom import Component
|
||||
from langflow.template.field.base import Input, Output
|
||||
from random import randint
|
||||
|
||||
|
||||
class MultipleOutputsComponent(CustomComponent):
|
||||
class MultipleOutputsComponent(Component):
|
||||
inputs = [
|
||||
Input(display_name="Input", name="input", field_type=str),
|
||||
Input(display_name="Number", name="number", field_type=int),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue