Spaces:
Sleeping
Sleeping
Francisco Aranda
commited on
Commit
•
4a7815d
1
Parent(s):
95feb70
update docs
Browse files
README.md
CHANGED
@@ -21,14 +21,14 @@ The application defines three webhook listeners for the following events:
|
|
21 |
|
22 |
The events are stored in a queue and displayed in the JSON component and the incoming events is updated every second.
|
23 |
|
24 |
-
You can view the incoming events in the JSON component below.
|
25 |
-
|
26 |
This application is just a demonstration of how to use the Argilla webhook listeners. You can visit the
|
27 |
[Argilla documentation](https://docs.argilla.io/dev/how_to_guides/webhooks) for more information.
|
28 |
|
29 |
## Running the app
|
30 |
|
31 |
-
First create an HF space running the argilla server.
|
|
|
|
|
32 |
|
33 |
```bash
|
34 |
export ARGILLA_API_KEY=<your_api_key>
|
|
|
21 |
|
22 |
The events are stored in a queue and displayed in the JSON component and the incoming events is updated every second.
|
23 |
|
|
|
|
|
24 |
This application is just a demonstration of how to use the Argilla webhook listeners. You can visit the
|
25 |
[Argilla documentation](https://docs.argilla.io/dev/how_to_guides/webhooks) for more information.
|
26 |
|
27 |
## Running the app
|
28 |
|
29 |
+
First create an HF space running the argilla server. Be sure argilla spaces is public.
|
30 |
+
|
31 |
+
Once the server is up and running, you must define the following environment variables:
|
32 |
|
33 |
```bash
|
34 |
export ARGILLA_API_KEY=<your_api_key>
|
app.py
CHANGED
@@ -5,6 +5,7 @@ from queue import Queue
|
|
5 |
import argilla as rg
|
6 |
import gradio as gr
|
7 |
|
|
|
8 |
client = rg.Argilla()
|
9 |
|
10 |
server = rg.get_webhook_server()
|
@@ -55,10 +56,11 @@ with gr.Blocks() as demo:
|
|
55 |
This demo shows the incoming events from the [Argilla Server]({argilla_server}).
|
56 |
|
57 |
The application defines three webhook listeners for the following events:
|
58 |
-
|
|
|
59 |
- Dataset events: `dataset.created`, `dataset.updated`, `dataset.deleted`, `dataset.published`
|
60 |
- Response events: `response.created`, `response.updated`
|
61 |
-
|
62 |
The events are stored in a queue and displayed in the JSON component and the incoming events is updated every second.
|
63 |
|
64 |
You can view the incoming events in the JSON component below.
|
|
|
5 |
import argilla as rg
|
6 |
import gradio as gr
|
7 |
|
8 |
+
|
9 |
client = rg.Argilla()
|
10 |
|
11 |
server = rg.get_webhook_server()
|
|
|
56 |
This demo shows the incoming events from the [Argilla Server]({argilla_server}).
|
57 |
|
58 |
The application defines three webhook listeners for the following events:
|
59 |
+
|
60 |
+
- Record events: `record.deleted`, `record.completed`
|
61 |
- Dataset events: `dataset.created`, `dataset.updated`, `dataset.deleted`, `dataset.published`
|
62 |
- Response events: `response.created`, `response.updated`
|
63 |
+
|
64 |
The events are stored in a queue and displayed in the JSON component and the incoming events is updated every second.
|
65 |
|
66 |
You can view the incoming events in the JSON component below.
|