Spaces:
Build error
Build error
File size: 300 Bytes
d9c353a dfcff08 d9c353a |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from gradio_webhooks import GradioWebhookApp, WebhookPayload
app = GradioWebhookApp(webhook_secret="my_dummy_secret")
@app.add_webhook("/my_webhook")
async def hello(payload: WebhookPayload):
print(f"Received webhook for repo {payload.repo.name}")
return {"processed": True}
app.ready()
|