Spaces:
Sleeping
Sleeping
Francisco Aranda
commited on
Commit
·
a7c2cd2
1
Parent(s):
48225dd
chore: Add some title and server reference
Browse files
main.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from queue import Queue
|
2 |
|
3 |
import argilla as rg
|
@@ -62,6 +63,9 @@ def check_incoming_events():
|
|
62 |
|
63 |
|
64 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
65 |
json_component = gr.JSON(label="Incoming argilla events:")
|
66 |
gr.Timer(5, active=True).tick(check_incoming_events, outputs=json_component)
|
67 |
|
|
|
1 |
+
import os
|
2 |
from queue import Queue
|
3 |
|
4 |
import argilla as rg
|
|
|
63 |
|
64 |
|
65 |
with gr.Blocks() as demo:
|
66 |
+
argilla_server = client.http_client.base_url
|
67 |
+
gr.Markdown("## Argilla Events")
|
68 |
+
gr.Markdown(f"This demo shows the incoming events from the [Argilla Server]({argilla_server}).")
|
69 |
json_component = gr.JSON(label="Incoming argilla events:")
|
70 |
gr.Timer(5, active=True).tick(check_incoming_events, outputs=json_component)
|
71 |
|