mirror of
https://github.com/trycua/computer.git
synced 2026-01-05 21:09:58 -06:00
Fix hackathon notebook
This commit is contained in:
@@ -138,10 +138,7 @@
|
||||
" \"trajectory_dir\": str(Path(\"trajectories\")),\n",
|
||||
" \"only_n_most_recent_images\": 3,\n",
|
||||
" \"verbosity\": logging.INFO\n",
|
||||
"}\n",
|
||||
"\n",
|
||||
"# Create agent\n",
|
||||
"agent = ComputerAgent(**agent_config)"
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -172,7 +169,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from computer import Computer, VMProviderType\n",
|
||||
"import webbrowser \n",
|
||||
"import webbrowser\n",
|
||||
"\n",
|
||||
"# Connect to your existing cloud container\n",
|
||||
"computer = Computer(\n",
|
||||
@@ -182,7 +179,7 @@
|
||||
")\n",
|
||||
"await computer.run()\n",
|
||||
"\n",
|
||||
"agent_config[\"tools\"] = computer\n",
|
||||
"agent_config[\"tools\"] = [ computer ]\n",
|
||||
"\n",
|
||||
"webbrowser.open(\"http://localhost:8006/\", new=0, autoraise=True)"
|
||||
]
|
||||
@@ -204,8 +201,11 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Create agent\n",
|
||||
"agent = ComputerAgent(**agent_config)\n",
|
||||
"\n",
|
||||
"tasks = [\n",
|
||||
" \"Look for a repository named trycua/cua on GitHub.\"\n",
|
||||
" \"Open the web browser and search for a repository named trycua/cua on GitHub.\"\n",
|
||||
"]\n",
|
||||
"\n",
|
||||
"for i, task in enumerate(tasks):\n",
|
||||
|
||||
Reference in New Issue
Block a user