Update app.py
Browse files
app.py
CHANGED
|
@@ -1018,10 +1018,11 @@ def node_optimizer(state: GameState):
|
|
| 1018 |
sprite_name = refined_logic_data.get("name_variable", "<unknown>")
|
| 1019 |
pseudo = refined_logic_data.get("pseudocode", "")
|
| 1020 |
try:
|
| 1021 |
-
refined_logic_data["pseudocode"] = separate_scripts(pseudo)
|
| 1022 |
# Step 4: If you want to update the `state` dictionary with the new refined_logic_data
|
| 1023 |
state["pseudo_code"]["refined_logic"] = refined_logic_data
|
| 1024 |
state["action_plan"] = transform_logic_to_action_flow(state["pseudo_code"])
|
|
|
|
| 1025 |
return state
|
| 1026 |
except Exception as e:
|
| 1027 |
logger.error(f"Error in Node Optimizer Node: {e}")
|
|
|
|
| 1018 |
sprite_name = refined_logic_data.get("name_variable", "<unknown>")
|
| 1019 |
pseudo = refined_logic_data.get("pseudocode", "")
|
| 1020 |
try:
|
| 1021 |
+
refined_logic_data["pseudocode"] = separate_scripts(str(pseudo))
|
| 1022 |
# Step 4: If you want to update the `state` dictionary with the new refined_logic_data
|
| 1023 |
state["pseudo_code"]["refined_logic"] = refined_logic_data
|
| 1024 |
state["action_plan"] = transform_logic_to_action_flow(state["pseudo_code"])
|
| 1025 |
+
print(f"[The action plan generated here]: { state['action_plan']}")
|
| 1026 |
return state
|
| 1027 |
except Exception as e:
|
| 1028 |
logger.error(f"Error in Node Optimizer Node: {e}")
|