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.

Changed image override to only occur if image is not set

Dillon DuPontce3ad14207af
diff --git a/libs/python/computer/computer/computer.py b/libs/python/computer/computer/computer.py
index 59b074c81f..93c796cbb3 100644
--- a/libs/python/computer/computer/computer.py
+++ b/libs/python/computer/computer/computer.py
@@ -88,10 +88,11 @@ class Computer:
self.logger = Logger("computer", verbosity)
self.logger.info("Initializing Computer...")
- if os_type == "macos":
- image = "macos-sequoia-cua:latest"
- elif os_type == "linux":
- image = "trycua/cua-ubuntu:latest"
+ if not image:
+ if os_type == "macos":
+ image = "macos-sequoia-cua:latest"
+ elif os_type == "linux":
+ image = "trycua/cua-ubuntu:latest"
image = str(image)
# Store original parameters