From 150841d9cf4b577755c0b68f7b0db91cb54cd471 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Wed, 12 Jun 2024 22:14:50 -0300 Subject: [PATCH] refactor: Remove unused input field in TextInput.py --- src/backend/base/langflow/components/inputs/TextInput.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/base/langflow/components/inputs/TextInput.py b/src/backend/base/langflow/components/inputs/TextInput.py index 7ac807cad..f8143d0c6 100644 --- a/src/backend/base/langflow/components/inputs/TextInput.py +++ b/src/backend/base/langflow/components/inputs/TextInput.py @@ -1,7 +1,7 @@ from langflow.base.io.text import TextComponent from langflow.field_typing import Text from langflow.inputs import StrInput -from langflow.template import Input, Output +from langflow.template import Output class TextInput(TextComponent): @@ -17,13 +17,13 @@ class TextInput(TextComponent): info="Text or Data to be passed as input.", input_types=["Data", "Text"], ), - Input( + StrInput( name="data_template", - type=str, display_name="Data Template", multiline=True, info="Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.", advanced=True, + value="{text}", ), ] outputs = [