mirror of
https://github.com/trycua/computer.git
synced 2026-01-05 04:50:08 -06:00
Merge pull request #86 from trycua/doc/agent/add-gradio-nb
Update README with gradio
This commit is contained in:
21
README.md
21
README.md
@@ -85,7 +85,26 @@ If you want to use AI agents with virtualized environments:
|
||||
|
||||
Explore the [Notebooks](./notebooks/) for ready-to-run examples.
|
||||
|
||||
4. For Developers (contribute and use latest features):
|
||||
4. Optionally, you can use the Agent with a Gradio UI:
|
||||
|
||||
```bash
|
||||
python -m pip install ai-gradio
|
||||
```
|
||||
|
||||
```python
|
||||
import gradio as gr
|
||||
import ai_gradio
|
||||
|
||||
gr.load(
|
||||
name='cua:gpt-4', # currently ignored
|
||||
src=ai_gradio.registry,
|
||||
title="Cua - AI Agent"
|
||||
).launch()
|
||||
```
|
||||
|
||||
Refer to this [Notebook](./notebooks/gradio_agent_nb.ipynb) for a complete example.
|
||||
|
||||
5. For Developers only (contribute and use latest features):
|
||||
```bash
|
||||
# Clone the repository
|
||||
git clone https://github.com/trycua/cua.git
|
||||
|
||||
Reference in New Issue
Block a user