Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,8 +34,8 @@ def generate_image(imageprompt: str) -> Image.Image:
|
|
| 34 |
|
| 35 |
|
| 36 |
@tool
|
| 37 |
-
def
|
| 38 |
-
"""A tool that scraps the web to find
|
| 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,
|
| 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,
|