nikhmr1235 commited on
Commit
33c5f86
·
verified ·
1 Parent(s): 5f23e82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -242,6 +242,8 @@ async def github_webhook(
242
  print("Error: Graph not initialized. Check server logs.")
243
  return
244
 
 
 
245
  initial_state_data = {
246
  "pr_id": pr_id,
247
  "repo_name": pr_repo_name,
@@ -263,7 +265,9 @@ async def github_webhook(
263
  }
264
 
265
  initial_state = PRReviewState(**initial_state_data)
266
-
 
 
267
  try:
268
  for s in global_graph.stream(initial_state, {"configurable": {"thread_id": new_thread_id}}):
269
  if "__end__" in s:
 
242
  print("Error: Graph not initialized. Check server logs.")
243
  return
244
 
245
+ print("global_graph is initialised...")
246
+
247
  initial_state_data = {
248
  "pr_id": pr_id,
249
  "repo_name": pr_repo_name,
 
265
  }
266
 
267
  initial_state = PRReviewState(**initial_state_data)
268
+
269
+ print("Graph is being streamed....")
270
+
271
  try:
272
  for s in global_graph.stream(initial_state, {"configurable": {"thread_id": new_thread_id}}):
273
  if "__end__" in s: