Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,8 +7,7 @@ from tools.final_answer import FinalAnswerTool
|
|
| 7 |
import requests
|
| 8 |
from bs4 import BeautifulSoup
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
-
|
| 11 |
-
from crewai import tool
|
| 12 |
|
| 13 |
# Initialize the Hugging Face web search model
|
| 14 |
search_model = HfApiModel(
|
|
@@ -71,7 +70,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 71 |
|
| 72 |
agent = CodeAgent(
|
| 73 |
model=model,
|
| 74 |
-
tools=[final_answer, get_top_sightseeing], ## add your tools here (don't remove final answer)
|
| 75 |
max_steps=6,
|
| 76 |
verbosity_level=1,
|
| 77 |
grammar=None,
|
|
|
|
| 7 |
import requests
|
| 8 |
from bs4 import BeautifulSoup
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
+
|
|
|
|
| 11 |
|
| 12 |
# Initialize the Hugging Face web search model
|
| 13 |
search_model = HfApiModel(
|
|
|
|
| 70 |
|
| 71 |
agent = CodeAgent(
|
| 72 |
model=model,
|
| 73 |
+
tools=[final_answer, get_top_sightseeing;DuckDuckGoSearchTool()], ## add your tools here (don't remove final answer)
|
| 74 |
max_steps=6,
|
| 75 |
verbosity_level=1,
|
| 76 |
grammar=None,
|