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.

Merge branch 'main' into feat/windows-server

Dillon DuPonta5b2f155798e
diff --cc libs/computer/computer/ui/gradio/app.py
index 3808fa894f,a9ae215487..946fb20320
--- a/libs/computer/computer/ui/gradio/app.py
+++ b/libs/computer/computer/ui/gradio/app.py
@@@ -528,13 -528,15 +528,15 @@@ async def execute(name, action, argumen
return results
- async def handle_init_computer(os_choice: str, app_list=None, provider="lume"):
+ async def handle_init_computer(os_choice: str, app_list=None, provider="lume", container_name=None, api_key=None):
- """Initialize the computer instance and tools for macOS or Ubuntu
+ """Initialize the computer instance and tools for macOS or Ubuntu or Windows
Args:
- os_choice: The OS to use ("macOS" or "Ubuntu")
+ os_choice: The OS to use ("macOS" or "Ubuntu" or "Windows")
app_list: Optional list of apps to focus on using the app-use experiment
- provider: The provider to use ("lume" or "self")
+ provider: The provider to use ("lume" or "self" or "cloud")
+ container_name: The container name to use for cloud provider
+ api_key: The API key to use for cloud provider
"""
global computer, tool_call_logs, tools
@@@ -1068,9 -1081,8 +1084,8 @@@ def create_gradio_ui()
with gr.Row():
os_choice = gr.Radio(
label="OS",
- choices=["macOS", "Ubuntu"],
+ choices=["macOS", "Ubuntu", "Windows"],
value="macOS",
- # interactive=False # disable until the ubuntu image is ready
)
# Provider selection radio