fix: imports from TextInput to MessageTextInput
This commit is contained in:
parent
d18ac62476
commit
914e741e29
3 changed files with 386 additions and 118 deletions
|
|
@ -1,8 +1,9 @@
|
|||
from typing import List
|
||||
|
||||
from langchain_text_splitters import CharacterTextSplitter
|
||||
|
||||
from langflow.custom import Component
|
||||
from langflow.io import HandleInput, IntInput, Output, TextInput
|
||||
from langflow.io import HandleInput, IntInput, Output
|
||||
from langflow.schema import Data
|
||||
from langflow.utils.util import unescape_string
|
||||
|
||||
|
|
@ -32,7 +33,7 @@ class SplitTextComponent(Component):
|
|||
info="The maximum number of characters in each chunk.",
|
||||
value=1000,
|
||||
),
|
||||
TextInput(
|
||||
MessageTextInput(
|
||||
name="separator",
|
||||
display_name="Separator",
|
||||
info="The character to split on. Defaults to newline.",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue