Remove "agent.state" argument from "agent.python_executor" args
Browse filesThe "agent.python_executor" method expects a single string input and runs into error as 2 inputs are given. The agent.state is empty dict at that point and removing it doesn't affect it as it's anyway initialised internally as empty dict.
unit2/smolagents/vision_web_browser.py
CHANGED
@@ -199,7 +199,7 @@ def main():
|
|
199 |
agent = initialize_agent(model)
|
200 |
|
201 |
# Run the agent with the provided prompt
|
202 |
-
agent.python_executor("from helium import *"
|
203 |
agent.run(args.prompt + helium_instructions)
|
204 |
|
205 |
|
|
|
199 |
agent = initialize_agent(model)
|
200 |
|
201 |
# Run the agent with the provided prompt
|
202 |
+
agent.python_executor("from helium import *")
|
203 |
agent.run(args.prompt + helium_instructions)
|
204 |
|
205 |
|