simonl0909 commited on
Commit
ceb3cb1
1 Parent(s): 2f7fd62

global keyword

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -18,6 +18,7 @@ app = WebhooksServer(ui=ui, webhook_secret="test")
18
 
19
  @app.add_webhook
20
  async def train(payload: WebhookPayload):
 
21
  webhook_payload = payload
22
  print("Received payload:", payload.dict())
23
  return payload.dict()
 
18
 
19
  @app.add_webhook
20
  async def train(payload: WebhookPayload):
21
+ global webhook_payload
22
  webhook_payload = payload
23
  print("Received payload:", payload.dict())
24
  return payload.dict()