mirror of
https://github.com/trycua/computer.git
synced 2026-03-11 20:28:59 -05:00
added computer-ui readme and optional dependency
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user