Spaces:
Sleeping
Sleeping
File size: 372 Bytes
b420f7b |
1 2 3 4 5 6 7 8 9 10 |
# https://huggingface.co/docs/huggingface_hub/main/en/guides/webhooks_server
# app.py
from huggingface_hub import webhook_endpoint, WebhookPayload
@webhook_endpoint
async def trigger_training(payload: WebhookPayload) -> None:
if payload.repo.type == "dataset" and payload.event.action == "update":
# Trigger a training job if a dataset is updated
... |