agentzero07 commited on
Commit
09f8132
·
verified ·
1 Parent(s): dc85dbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -48,7 +48,6 @@ def get_weather(city: str) -> str:
48
  except Exception as e:
49
  return f"Error fetching weather conditions for {city}"
50
 
51
-
52
  final_answer = FinalAnswerTool()
53
 
54
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
@@ -70,7 +69,7 @@ with open("prompts.yaml", 'r') as stream:
70
 
71
  agent = CodeAgent(
72
  model=model,
73
- tools=[final_answer, get_weather], ## add your tools here (don't remove final answer)
74
  max_steps=6,
75
  verbosity_level=1,
76
  grammar=None,
 
48
  except Exception as e:
49
  return f"Error fetching weather conditions for {city}"
50
 
 
51
  final_answer = FinalAnswerTool()
52
 
53
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
 
69
 
70
  agent = CodeAgent(
71
  model=model,
72
+ tools=[final_answer, get_weather, DuckDuckGoSearchTool, image_generation_tool], ## add your tools here (don't remove final answer)
73
  max_steps=6,
74
  verbosity_level=1,
75
  grammar=None,