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.

Lumier computer provider takes non trycua image

Jakub Klapacz2e541704f645
diff --git a/libs/computer/computer/providers/lumier/provider.py b/libs/computer/computer/providers/lumier/provider.py
index 56ae3a7ec6..14c5620d0c 100644
--- a/libs/computer/computer/providers/lumier/provider.py
+++ b/libs/computer/computer/providers/lumier/provider.py
@@ -344,9 +344,15 @@ class LumierProvider(BaseVMProvider):
# Use the VM image passed from the Computer class
print(f"Using VM image: {self.image}")
+ # If ghcr.io is in the image, use the full image name
+ if "ghcr.io" in self.image:
+ vm_image = self.image
+ else:
+ vm_image = f"ghcr.io/trycua/{self.image}"
+
cmd.extend([
"-e", f"VM_NAME={self.container_name}",
- "-e", f"VERSION=ghcr.io/trycua/{self.image}",
+ "-e", f"VERSION={vm_image}",
"-e", f"CPU_CORES={run_opts.get('cpu', '4')}",
"-e", f"RAM_SIZE={memory_mb}",
])