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 winsandbox to agent UI

Dillon DuPontd2a0ee02224a
diff --git a/libs/agent/agent/ui/gradio/app.py b/libs/agent/agent/ui/gradio/app.py
index 8d173dd610..89f9894b7a 100644
--- a/libs/agent/agent/ui/gradio/app.py
+++ b/libs/agent/agent/ui/gradio/app.py
@@ -735,14 +735,19 @@ if __name__ == "__main__":
info="Select the operating system for the computer",
)
- # Detect if current device is MacOS
+ is_windows = platform.system().lower() == "windows"
is_mac = platform.system().lower() == "darwin"
+ providers = ["cloud"]
+ if is_mac:
+ providers += ["lume"]
+ elif is_windows:
+ providers += ["winsandbox"]
+
computer_provider = gr.Radio(
- choices=["cloud", "lume"],
+ choices=providers,
label="Provider",
- value="lume" if is_mac else "cloud",
- visible=is_mac,
+ value="cloud",
info="Select the computer provider",
)