Update unit2/smolagents/vision_web_browser.py
Browse filesUsing agent.python_executor("from helium import *") works for me. Using it with agent.state gives the following error:
TypeError: LocalPythonExecutor.__call__() takes 2 positional arguments but 3 were given
198 unmodified lines199200201202203204205198 unmodified linesagent = initialize_agent(model)# Run the agent with the provided promptagent.python_executor("from helium import *", agent.state)agent.run(args.prompt + helium_instructions)198 unmodified lines199200201202203204205198 unmodified linesagent = initialize_agent(model)# Run the agent with the provided promptagent.python_executor("from helium import *")agent.run(args.prompt + helium_instructions)
unit2/smolagents/vision_web_browser.py+1-1