Update README.md

This commit is contained in:
f-trycua
2025-04-06 11:42:46 -07:00
committed by GitHub
parent 241ebb7d8e
commit 3f1ebf8705

View File

@@ -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