mirror of
https://github.com/trycua/computer.git
synced 2026-01-05 21:09:58 -06:00
Initialize computer before taking screenshot
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user