Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix broken import after refactor in 5bfadf8f9ada07926fdcfe7f10929ef66a092544

James Murdzad27ee728b5cb
diff --git a/examples/agent_ui_examples.py b/examples/agent_ui_examples.py
index d5a3711964..97f54856cc 100644
--- a/examples/agent_ui_examples.py
+++ b/examples/agent_ui_examples.py
@@ -13,7 +13,7 @@ from utils import load_dotenv_files
load_dotenv_files()
# Import the create_gradio_ui function
-from agent.ui.gradio.app import create_gradio_ui
+from agent.ui.gradio.ui_components import create_gradio_ui
if __name__ == "__main__":
print("Launching Computer-Use Agent Gradio UI with advanced features...")
diff --git a/notebooks/agent_nb.ipynb b/notebooks/agent_nb.ipynb
index 4c39c204f2..61e7288a5a 100644
--- a/notebooks/agent_nb.ipynb
+++ b/notebooks/agent_nb.ipynb
@@ -379,7 +379,7 @@
"metadata": {},
"outputs": [],
"source": [
- "from agent.ui.gradio.app import create_gradio_ui\n",
+ "from agent.ui.gradio.ui_components import create_gradio_ui\n",
"\n",
"app = create_gradio_ui()\n",
"app.launch(share=False)"
diff --git a/scripts/playground.sh b/scripts/playground.sh
index 39710e4c64..0cde5a25bd 100755
--- a/scripts/playground.sh
+++ b/scripts/playground.sh
@@ -257,7 +257,7 @@ from pathlib import Path
from dotenv import load_dotenv
from computer import Computer
from agent import ComputerAgent, LLM, AgentLoop, LLMProvider
-from agent.ui.gradio.app import create_gradio_ui
+from agent.ui.gradio.ui_components import create_gradio_ui
# Load environment variables from .env.local
load_dotenv(Path(__file__).parent / ".env.local")
@@ -292,7 +292,7 @@ from pathlib import Path
from dotenv import load_dotenv
from computer import Computer
from agent import ComputerAgent, LLM, AgentLoop, LLMProvider
-from agent.ui.gradio.app import create_gradio_ui
+from agent.ui.gradio.ui_components import create_gradio_ui
# Load environment variables from .env.local
load_dotenv(Path(__file__).parent / ".env.local")