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.

Temporary macOS assert for app-use

Dillon DuPontdf9a080d037e
diff --git a/libs/computer/computer/computer.py b/libs/computer/computer/computer.py
index a1868cc40b..c25ad2bf5d 100644
--- a/libs/computer/computer/computer.py
+++ b/libs/computer/computer/computer.py
@@ -98,6 +98,9 @@ class Computer:
self.api_key = api_key
self.experiments = experiments or []
+
+ if "app-use" in self.experiments:
+ assert self.os_type == "macos", "App use experiment is only supported on macOS"
# The default is currently to use non-ephemeral storage
if storage and ephemeral and storage != "ephemeral":