natharzu commited on
Commit
f02cf28
·
verified ·
1 Parent(s): ded42cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -66,6 +66,8 @@ def weather_tool(agent_input: str) -> str:
66
  tool_1 = smolagents.Tool(name="FavoriteWeather", function=weather_tool)
67
 
68
  # Example usage (you can use this to test the tool)
 
 
69
  agent = smolagents.Agent(tools=[tool_1])
70
  response = agent.run("sunny")
71
  print(response) # Should print the response for "sunny" weather
 
66
  tool_1 = smolagents.Tool(name="FavoriteWeather", function=weather_tool)
67
 
68
  # Example usage (you can use this to test the tool)
69
+ from smolagents.agents import Agent # Importing Agent correctly
70
+
71
  agent = smolagents.Agent(tools=[tool_1])
72
  response = agent.run("sunny")
73
  print(response) # Should print the response for "sunny" weather