Add code section
This commit is contained in:
parent
a47dc9ae92
commit
6736288e6f
1 changed files with 12 additions and 0 deletions
|
|
@ -6,6 +6,18 @@ from langflow.database.base import create_db_and_tables
|
||||||
|
|
||||||
template_node = {
|
template_node = {
|
||||||
"template": {
|
"template": {
|
||||||
|
"code": {
|
||||||
|
"required": True,
|
||||||
|
"placeholder": "",
|
||||||
|
"show": True,
|
||||||
|
"multiline": True,
|
||||||
|
"value": "\ndef my_user_python_function(text: str) -> str:\n \"\"\"This is a default python function that returns the input text\"\"\"\n return text.upper()\n",
|
||||||
|
"password": False,
|
||||||
|
"name": "code",
|
||||||
|
"advanced": False,
|
||||||
|
"type": "code",
|
||||||
|
"list": False
|
||||||
|
},
|
||||||
"lc_kwargs": {
|
"lc_kwargs": {
|
||||||
"required": False,
|
"required": False,
|
||||||
"placeholder": "",
|
"placeholder": "",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue