diff --git a/examples/browser-use-cua/main.py b/examples/browser-use-cua/main.py index e71a0e86..24778487 100644 --- a/examples/browser-use-cua/main.py +++ b/examples/browser-use-cua/main.py @@ -1,5 +1,7 @@ import asyncio +import base64 import os +from io import BytesIO from typing import TYPE_CHECKING from dotenv import load_dotenv from browser_use import Agent, Tools @@ -7,11 +9,6 @@ from browser_use.llm import ChatOpenAI from browser_use.agent.views import ActionResult -import asyncio -import base64 -import os -from io import BytesIO - from agent_sandbox import Sandbox from agent_sandbox.browser.types.action import ( Action_Click, @@ -277,9 +274,6 @@ async def handle_cua_action(action: "ComputerAction") -> ActionResult: return ActionResult(error=f"{ERROR_MSG}: {e}") -tools = Tools() - - @tools.registry.action( "Use Sandbox GUI as a fallback when standard browser actions cannot achieve the desired goal. " "This action takes a screenshot and uses OpenAI CUA to determine the next GUI action, " @@ -437,6 +431,3 @@ async def main(): print() asyncio.run(main()) - -if __name__ == "__main__": - asyncio.run(main())