File size: 1,318 Bytes
44d4f39
 
16eaf19
 
 
 
92455fd
16eaf19
44d4f39
 
36f940f
f039650
 
16eaf19
 
b0bc07c
 
95feb70
b0bc07c
 
 
 
 
 
 
f039650
 
 
939c961
4a7815d
939c961
16eaf19
939c961
 
f039650
 
 
939c961
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: Argilla Webhooks
emoji: 🦀
colorFrom: pink
colorTo: pink
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
---

## Description

This space is a basic server webhooks example to show how to set up webhook listeners using the argilla SDK.

The application defines three webhook listeners for the following events:

- Record events: `record.deleted`, `record.completed`
- Dataset events: `dataset.created`, `dataset.updated`, `dataset.deleted`, `dataset.published`
- Response events: `response.created`, `response.updated`
        
The events are stored in a queue and displayed in the JSON component and the incoming events is updated every second.

This application is just a demonstration of how to use the Argilla webhook listeners. You can visit the 
[Argilla documentation](https://docs.argilla.io/dev/how_to_guides/webhooks) for more information.

## Running the app

First create an HF space running the argilla server. Be sure the argilla space is public.

Once the server is up and running, you duplicate the space and configure the following environment variables:

- `ARGILLA_API_URL`: The URL of the argilla server.
- `ARGILLA_API_KEY`: The API key to access the argilla server.

## Testing the app

Open the gradio application. You can see incoming events from the argilla server.