AswinMathew commited on
Commit
3bf00dd
·
verified ·
1 Parent(s): fa49c52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -34,8 +34,8 @@ def generate_image(imageprompt: str) -> Image.Image:
34
 
35
 
36
  @tool
37
- def get_news(topic: str) -> str:
38
- """A tool that scraps the web to find latest news article related to a specific topic
39
 
40
  Args:
41
  topic: A detailed topic that will act as the search query
@@ -86,7 +86,7 @@ with open("prompts.yaml", 'r') as stream:
86
 
87
  agent = CodeAgent(
88
  model=model,
89
- tools=[final_answer, get_news, generate_image], ## add your tools here (don't remove final answer)
90
  max_steps=6,
91
  verbosity_level=1,
92
  grammar=None,
 
34
 
35
 
36
  @tool
37
+ def web_search(topic: str) -> str:
38
+ """A tool that scraps the web to find results related to a specific topic
39
 
40
  Args:
41
  topic: A detailed topic that will act as the search query
 
86
 
87
  agent = CodeAgent(
88
  model=model,
89
+ tools=[final_answer, web_search, generate_image], ## add your tools here (don't remove final answer)
90
  max_steps=6,
91
  verbosity_level=1,
92
  grammar=None,