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.

Exposed UI from outside container

Dillon DuPont1e268ecbf107
diff --git a/examples/agent_ui_examples.py b/examples/agent_ui_examples.py
index 17130f5c5d..d5a3711964 100644
--- a/examples/agent_ui_examples.py
+++ b/examples/agent_ui_examples.py
@@ -18,4 +18,8 @@ from agent.ui.gradio.app import create_gradio_ui
if __name__ == "__main__":
print("Launching Computer-Use Agent Gradio UI with advanced features...")
app = create_gradio_ui()
- app.launch(share=False)
+ app.launch(
+ share=False,
+ server_name="0.0.0.0",
+ server_port=7860,
+ )
diff --git a/examples/computer_ui_examples.py b/examples/computer_ui_examples.py
index 4116b41e37..0c1d0974d2 100644
--- a/examples/computer_ui_examples.py
+++ b/examples/computer_ui_examples.py
@@ -18,7 +18,11 @@ from computer.ui.gradio.app import create_gradio_ui
if __name__ == "__main__":
print("Launching Computer Interface Gradio UI with advanced features...")
app = create_gradio_ui()
- app.launch(share=False)
+ app.launch(
+ share=False,
+ server_name="0.0.0.0",
+ server_port=7860,
+ )
# Optional: Using the saved dataset
# import datasets