refac: fix prompt value for chains
This commit is contained in:
parent
e909a938c9
commit
d9b0a693e2
2 changed files with 5 additions and 6 deletions
|
|
@ -58,12 +58,10 @@ def build_json(root, nodes, edges):
|
|||
module_type = value["type"]
|
||||
# if module_type == "Tool":
|
||||
# pass
|
||||
if module_type in ["str", "bool", "int", "float", "Any"]:
|
||||
# print(key)
|
||||
# try:
|
||||
# if module_type in ["str", "bool", "int", "float", "Any"] or value["value"]:
|
||||
# value = value["value"]
|
||||
if "value" in value and value["value"] is not None:
|
||||
value = value["value"]
|
||||
# except:
|
||||
# pass
|
||||
elif "dict" in module_type:
|
||||
value = {}
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#! /bin/bash
|
||||
|
||||
VERSION="0.1.0"
|
||||
docker build -t logspace/frontend_build -f build.Dockerfile .
|
||||
docker build --build-arg VERSION=$VERSION -t logspace/langflow_frontend:$VERSION .
|
||||
docker push logspace/langflow_frontend:$VERSION
|
||||
# docker push logspace/langflow_frontend:$VERSION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue