Spaces:
Running
Running
Fix: Skip UI-only 'Note' nodes in API conversion
Browse files
app.py
CHANGED
|
@@ -103,6 +103,11 @@ def convert_to_api(web_workflow):
|
|
| 103 |
for node in nodes:
|
| 104 |
node_id = str(node["id"])
|
| 105 |
class_type = node["type"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
inputs = {}
|
| 107 |
|
| 108 |
# 1. Handle Connections (from links)
|
|
|
|
| 103 |
for node in nodes:
|
| 104 |
node_id = str(node["id"])
|
| 105 |
class_type = node["type"]
|
| 106 |
+
|
| 107 |
+
# Skip UI-only nodes that aren't functional in the API
|
| 108 |
+
if class_type in ["Note", "Group", "Reroute"]:
|
| 109 |
+
continue
|
| 110 |
+
|
| 111 |
inputs = {}
|
| 112 |
|
| 113 |
# 1. Handle Connections (from links)
|