refac: fix prompt value for chains

This commit is contained in:
Ibis Prevedello 2023-03-05 22:00:53 -03:00
commit d9b0a693e2
2 changed files with 5 additions and 6 deletions

View file

@ -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:

View file

@ -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