added computer-ui readme and optional dependency

This commit is contained in:
Dillon DuPont
2025-04-18 16:20:21 -04:00
parent d14bb2e98f
commit 5cf166c194
2 changed files with 28 additions and 1 deletions

View File

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

View File

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