deepmage121 commited on
Commit
79248f8
·
1 Parent(s): e4c7c5c

webhook fix

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ import tempfile
11
  import threading
12
  from datetime import datetime, timezone
13
 
14
- from huggingface_hub import HfApi, WebhooksServer
15
  from huggingface_hub import hf_hub_download
16
  from huggingface_hub.utils import EntryNotFoundError
17
 
@@ -345,7 +345,7 @@ def _extract_pr_nums_from_refs(payload) -> list[int]:
345
  return pr_nums
346
 
347
 
348
- async def validate(payload):
349
  """Handle incoming webhook events from HuggingFace."""
350
  logger.info("Received webhook event: %s", payload.event)
351
 
 
11
  import threading
12
  from datetime import datetime, timezone
13
 
14
+ from huggingface_hub import HfApi, WebhookPayload, WebhooksServer
15
  from huggingface_hub import hf_hub_download
16
  from huggingface_hub.utils import EntryNotFoundError
17
 
 
345
  return pr_nums
346
 
347
 
348
+ async def validate(payload: WebhookPayload):
349
  """Handle incoming webhook events from HuggingFace."""
350
  logger.info("Received webhook event: %s", payload.event)
351