Merge branch 'db' of github.com:logspace-ai/langflow into db
This commit is contained in:
commit
beea12934b
2 changed files with 1 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ def process_tweaks(graph_data: Dict, tweaks: Dict):
|
||||||
# the dict of tweaks contains the name of a certain parameter and the value to be tweaked
|
# the dict of tweaks contains the name of a certain parameter and the value to be tweaked
|
||||||
|
|
||||||
# We need to process the graph data to add the tweaks
|
# We need to process the graph data to add the tweaks
|
||||||
if "data" not in graph_data or "nodes" in graph_data["data"]:
|
if "data" not in graph_data and "nodes" in graph_data:
|
||||||
nodes = graph_data["nodes"]
|
nodes = graph_data["nodes"]
|
||||||
else:
|
else:
|
||||||
nodes = graph_data["data"]["nodes"]
|
nodes = graph_data["data"]["nodes"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue