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.

Use correct return type for run_command

James Murdzaf9a317c190e7
diff --git a/notebooks/computer_nb.ipynb b/notebooks/computer_nb.ipynb
index 24e4ef7a3f..698db37c15 100644
--- a/notebooks/computer_nb.ipynb
+++ b/notebooks/computer_nb.ipynb
@@ -462,7 +462,8 @@
"dir_exists = await computer.interface.directory_exists(\"/path/to/directory\")\n",
"\n",
"# Run shell commands\n",
- "stdout, stderr = await computer.interface.run_command(\"ls -la\")"
+ "result = await computer.interface.run_command(\"ls -la\")\n",
+ "stdout, stderr, returncode = result.stdout, result.stderr, result.returncode"
]
},
{
@@ -603,7 +604,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.12.2"
+ "version": "3.13.5"
}
},
"nbformat": 4,