mirror of
https://github.com/trycua/computer.git
synced 2026-01-06 05:20:02 -06:00
Update README.md
This commit is contained in:
21
README.md
21
README.md
@@ -87,23 +87,16 @@ If you want to use AI agents with virtualized environments:
|
||||
|
||||
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()
|
||||
from utils import load_dotenv_files
|
||||
load_dotenv_files()
|
||||
|
||||
from agent.ui.gradio.app import create_gradio_ui
|
||||
|
||||
app = create_gradio_ui()
|
||||
app.launch(share=False)
|
||||
```
|
||||
|
||||
Refer to the [Gradio Notebook](./notebooks/gradio_agent_nb.ipynb) for a complete example.
|
||||
|
||||
5. For Developers only (contribute and use latest features):
|
||||
```bash
|
||||
# Clone the repository
|
||||
|
||||
Reference in New Issue
Block a user