nikhmr1235 commited on
Commit
96a22b4
·
verified ·
1 Parent(s): 2fdd3bc

bug fix for AttributeError: 'CompiledStateGraph' object has no attribute 'compile'

Browse files
Files changed (1) hide show
  1. src/langgraph_logic/graph.py +2 -3
src/langgraph_logic/graph.py CHANGED
@@ -27,9 +27,8 @@ def create_graph():
27
  workflow.add_edge("post_code_review", "update_review_with_human_feedback")
28
  workflow.add_edge("update_review_with_human_feedback", END)
29
 
30
- # --- Compile the Graph ---
31
- app = workflow.compile()
32
- return app
33
 
34
  # To make it runnable for debugging or direct invocation
35
  if __name__ == "__main__":
 
27
  workflow.add_edge("post_code_review", "update_review_with_human_feedback")
28
  workflow.add_edge("update_review_with_human_feedback", END)
29
 
30
+ # The compilation with the checkpointer is now handled in app.py
31
+ return workflow
 
32
 
33
  # To make it runnable for debugging or direct invocation
34
  if __name__ == "__main__":