Spaces:
Sleeping
Sleeping
Commit ·
2e90427
1
Parent(s): a1cb2e4
webhook fix
Browse files
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,6 @@ def _extract_pr_nums_from_refs(payload) -> list[int]:
|
|
| 345 |
return pr_nums
|
| 346 |
|
| 347 |
|
| 348 |
-
@webhook_endpoint
|
| 349 |
async def validate(payload):
|
| 350 |
"""Handle incoming webhook events from HuggingFace."""
|
| 351 |
logger.info("Received webhook event: %s", payload.event)
|
|
|
|
| 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 |
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)
|