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.

Initialize computer before taking screenshot

James Murdza3b76612d66b4
diff --git a/notebooks/computer_nb.ipynb b/notebooks/computer_nb.ipynb
index d1d97d12d2..24e4ef7a3f 100644
--- a/notebooks/computer_nb.ipynb
+++ b/notebooks/computer_nb.ipynb
@@ -153,6 +153,8 @@
"metadata": {},
"outputs": [],
"source": [
+ "await computer.run() # Initialize the computer first\n",
+ "\n",
"screenshot = await computer.interface.screenshot()\n",
"\n",
"with open(\"screenshot.png\", \"wb\") as f:\n",