Update loading.py
This commit is contained in:
parent
ded527a64a
commit
801ff57dc0
1 changed files with 1 additions and 1 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue