derek-thomas HF staff commited on
Commit
962f45f
1 Parent(s): f0e56b8

Upgrading huggingface-hub to work with webhooks

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -132,7 +132,7 @@ with gr.Blocks() as ui:
132
  app = WebhooksServer(ui=ui.queue(), webhook_secret=WEBHOOK_SECRET)
133
 
134
 
135
- @app.add_webhook("/community")
136
  async def community(payload: WebhookPayload):
137
  if payload.event.scope.startswith("repo"):
138
  logger.info(f"Webhook received from {DATASET_NAME} indicating a repo {payload.event.action}")
 
132
  app = WebhooksServer(ui=ui.queue(), webhook_secret=WEBHOOK_SECRET)
133
 
134
 
135
+ @app.add_webhook("/dataset_repo")
136
  async def community(payload: WebhookPayload):
137
  if payload.event.scope.startswith("repo"):
138
  logger.info(f"Webhook received from {DATASET_NAME} indicating a repo {payload.event.action}")