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.

added computer-ui readme and optional dependency

Dillon DuPont5cf166c1945b
diff --git a/libs/computer/README.md b/libs/computer/README.md
index 80ce42cacb..3352ac41c1 100644
--- a/libs/computer/README.md
+++ b/libs/computer/README.md
@@ -63,4 +63,25 @@ The `cua-computer` PyPi package pulls automatically the latest executable versio
Refer to this notebook for a step-by-step guide on how to use the Computer-Use Interface (CUI):
-- [Computer-Use Interface (CUI)](../../notebooks/computer_nb.ipynb)
\ No newline at end of file
+- [Computer-Use Interface (CUI)](../../notebooks/computer_nb.ipynb)
+
+## Using the Gradio UI
+
+The computer module includes a Gradio UI for creating and sharing demonstration data.
+
+```bash
+# Install with UI support
+pip install "cua-computer[ui]"
+```
+
+### Launch the UI
+
+```python
+# launch_ui.py
+from computer.ui.gradio.app import create_gradio_ui
+
+app = create_gradio_ui()
+app.launch(share=False)
+```
+
+For examples, see [Computer UI Examples](../../examples/computer_ui_examples.py)
diff --git a/libs/computer/pyproject.toml b/libs/computer/pyproject.toml
index 94f8665c91..ed438947fc 100644
--- a/libs/computer/pyproject.toml
+++ b/libs/computer/pyproject.toml
@@ -21,6 +21,12 @@ dependencies = [
]
requires-python = ">=3.10"
+[project.optional-dependencies]
+ui = [
+ "gradio>=5.23.3,<6.0.0",
+ "python-dotenv>=1.0.1,<2.0.0",
+]
+
[tool.pdm]
distribution = true