Update loading.py

This commit is contained in:
Petru Molla 2023-04-20 21:56:10 +03:00 • committed by Gabriel Luiz Freitas Almeida
commit 801ff57dc0

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"]