From 3f1ebf8705a3aa0641d2f2ff5750e2ca42ad4d15 Mon Sep 17 00:00:00 2001 From: f-trycua Date: Sun, 6 Apr 2025 11:42:46 -0700 Subject: [PATCH] Update README.md --- README.md | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 18f62e88..38e65c43 100644 --- a/README.md +++ b/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