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.

Fix image must have : error

Dillon DuPontc51692cd0ccb
diff --git a/libs/python/computer/computer/computer.py b/libs/python/computer/computer/computer.py
index 441e3ec3fa..f01c549158 100644
--- a/libs/python/computer/computer/computer.py
+++ b/libs/python/computer/computer/computer.py
@@ -154,8 +154,8 @@ class Computer:
self.interface_logger = Logger("computer.interface", verbosity)
if not use_host_computer_server:
- if ":" not in image or len(image.split(":")) != 2:
- raise ValueError("Image must be in the format <image_name>:<tag>")
+ if ":" not in image:
+ image = f"{image}:latest"
if not name:
# Normalize the name to be used for the VM