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.

Disable stop windows

Dillon DuPont83cad3b68777
diff --git a/examples/computer_examples_windows.py b/examples/computer_examples_windows.py
index 2efefce4f8..4182026ea5 100644
--- a/examples/computer_examples_windows.py
+++ b/examples/computer_examples_windows.py
@@ -31,7 +31,7 @@ async def main():
computer = Computer(
os_type="windows",
api_key=os.getenv("CUA_API_KEY"),
- name=os.getenv("CONTAINER_NAME") or "",
+ name="s-windows-x4snp46ebf", # os.getenv("CONTAINER_NAME") or "",
provider_type=VMProviderType.CLOUD,
)
@@ -74,7 +74,8 @@ async def main():
finally:
# Important to clean up resources
- await computer.stop()
+ # await computer.stop()
+ pass
except Exception as e:
print(f"Error in main: {e}")
traceback.print_exc()