Update loading.py

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-04-20 15:18:59 -03:00
commit ded527a64a

View file

@ -87,7 +87,7 @@ def load_flow_from_json(path: str):
from langflow.graph import Graph
"""Load flow from json file"""
with open(path, "r", encoding='utf-8') as f:
with open(path, "r", encoding=utf-8") as f:
flow_graph = json.load(f)
data_graph = flow_graph["data"]
nodes = data_graph["nodes"]