Spaces:
Sleeping
Sleeping
# https://huggingface.co/docs/huggingface_hub/main/en/guides/webhooks_server | |
# app.py | |
from huggingface_hub import webhook_endpoint, WebhookPayload | |
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 | |
... |