File size: 679 Bytes
ea4f756
 
164511d
ea4f756
 
bad42fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea4f756
bad42fb
 
ea4f756
d4ce535
bad42fb
 
 
 
 
 
ea4f756
bad42fb
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
import gradio as gr

with gr.Blocks() as demo:
    gr.Markdown(
        value="""
## Start logging with Trackio 🤗

To start logging to this Trackio dashboard, first make sure you have the Trackio library installed. You can do this by running:

```bash
pip install trackio
```

Then, start logging to this Trackio dashboard by passing in the `space_id` to `trackio.init()`:

```python
import trackio
trackio.init(project="my-project", space_id="{}")
```

Then call `trackio.log()` to log metrics.

```python
for i in range(10):
    trackio.log({{"loss": 1/(i+1)}})
```

Finally, call `trackio.finish()` to finish the run.

```python
trackio.finish()
```
"""    )

demo.launch()