nikhmr1235 commited on
Commit
ad31c32
·
verified ·
1 Parent(s): d5e4283

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,7 +6,7 @@ from dotenv import load_dotenv
6
  from fastapi import FastAPI, Request, HTTPException, Header, status
7
  from pydantic import BaseModel, Field
8
 
9
- from langgraph_pr_review_bot import graph
10
 
11
  # Load environment variables from .env file
12
  load_dotenv()
@@ -78,7 +78,7 @@ def verify_signature(x_hub_signature_256: str, payload_body: bytes) -> bool:
78
  return hmac.compare_digest(calculated_signature, expected_signature)
79
 
80
  # --- Webhook Endpoint ---
81
-
82
  @app.post("/webhook")
83
  async def github_webhook(
84
  request: Request,
@@ -150,7 +150,7 @@ async def github_webhook(
150
  output = graph.invoke(initial_state, config)
151
  print(f"completed graph execution with result:{output['last_error']}")
152
 
153
-
154
  @app.get("/")
155
  async def read_root():
156
  return {"message": "PR Reviewer Bot is running!"}
 
6
  from fastapi import FastAPI, Request, HTTPException, Header, status
7
  from pydantic import BaseModel, Field
8
 
9
+ #from langgraph_pr_review_bot import graph
10
 
11
  # Load environment variables from .env file
12
  load_dotenv()
 
78
  return hmac.compare_digest(calculated_signature, expected_signature)
79
 
80
  # --- Webhook Endpoint ---
81
+ '''
82
  @app.post("/webhook")
83
  async def github_webhook(
84
  request: Request,
 
150
  output = graph.invoke(initial_state, config)
151
  print(f"completed graph execution with result:{output['last_error']}")
152
 
153
+ '''
154
  @app.get("/")
155
  async def read_root():
156
  return {"message": "PR Reviewer Bot is running!"}