WebashalarForML commited on
Commit
b38373d
·
verified ·
1 Parent(s): 4ca3d8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1366,7 +1366,7 @@ def plan_verification_node(state: GameState):
1366
  state["needs_improvement"] = False
1367
  state["plan_validation_feedback"] = "Max iterations reached, stopping further improvements."
1368
  state["iteration_count"] = 0 # Reset iteration count as improvement loop is stopping
1369
- print(f"[updated action_plan after verification] on ({current_iteration}): {json.dumps(state.get("action_plan", {}), indent=2)}")
1370
  with open("debug_state.json", "w", encoding="utf-8") as f:
1371
  json.dump(state, f, indent=2, ensure_ascii=False)
1372
  return state
@@ -1512,7 +1512,7 @@ def plan_verification_node(state: GameState):
1512
  state["iteration_count"] = 0 # Reset if no more improvement needed
1513
 
1514
  logger.info(f"Verification completed. Needs Improvement: {state['needs_improvement']}. Feedback: {state['plan_validation_feedback'][:100]}...")
1515
- print(f"[updated action_plan after verification] on ({current_iteration}): {json.dumps(state.get("action_plan", {}), indent=2)}")
1516
 
1517
  with open("debug_state.json", "w", encoding="utf-8") as f:
1518
  json.dump(state, f, indent=2, ensure_ascii=False)
@@ -3201,8 +3201,8 @@ def block_verification_node(state: dict) -> dict:
3201
 
3202
  logger.info(f"Block verification completed. Needs Improvement: {state['needs_improvement']}. Feedback: {state['block_validation_feedback'][:100]}...")
3203
  print("===========================================================================")
3204
- print(f"[BLOCK VERIFICATION NODE: (improvement_plan)]:{state.get("improvement_plan")}")
3205
- print(f"[BLOCK VERIFICATION NODE: (review_block_feedback)]:{state.get("review_block_feedback")}")
3206
 
3207
  with open("debug_state.json", "w", encoding="utf-8") as f:
3208
  json.dump(state, f, indent=2, ensure_ascii=False)
 
1366
  state["needs_improvement"] = False
1367
  state["plan_validation_feedback"] = "Max iterations reached, stopping further improvements."
1368
  state["iteration_count"] = 0 # Reset iteration count as improvement loop is stopping
1369
+ print(f"[updated action_plan after verification] on ({current_iteration}): {json.dumps(state.get('action_plan', {}), indent=2)}")
1370
  with open("debug_state.json", "w", encoding="utf-8") as f:
1371
  json.dump(state, f, indent=2, ensure_ascii=False)
1372
  return state
 
1512
  state["iteration_count"] = 0 # Reset if no more improvement needed
1513
 
1514
  logger.info(f"Verification completed. Needs Improvement: {state['needs_improvement']}. Feedback: {state['plan_validation_feedback'][:100]}...")
1515
+ print(f"[updated action_plan after verification] on ({current_iteration}): {json.dumps(state.get('action_plan', {}), indent=2)}")
1516
 
1517
  with open("debug_state.json", "w", encoding="utf-8") as f:
1518
  json.dump(state, f, indent=2, ensure_ascii=False)
 
3201
 
3202
  logger.info(f"Block verification completed. Needs Improvement: {state['needs_improvement']}. Feedback: {state['block_validation_feedback'][:100]}...")
3203
  print("===========================================================================")
3204
+ print(f"[BLOCK VERIFICATION NODE: (improvement_plan)]:{state.get('improvement_plan')}")
3205
+ print(f"[BLOCK VERIFICATION NODE: (review_block_feedback)]:{state.get('review_block_feedback')}")
3206
 
3207
  with open("debug_state.json", "w", encoding="utf-8") as f:
3208
  json.dump(state, f, indent=2, ensure_ascii=False)