Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,14 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
21 |
|
22 |
cache = {}
|
23 |
|
24 |
-
web_search = DuckDuckGoSearchTool()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
google_search = GoogleSearchTool(provider="serper")
|
26 |
python_interpreter = PythonInterpreterTool(authorized_imports = [
|
27 |
# standard library
|
|
|
21 |
|
22 |
cache = {}
|
23 |
|
24 |
+
web_search = DuckDuckGoSearchTool(name)
|
25 |
+
|
26 |
+
web_search = Tool(
|
27 |
+
name="duck_duck_go_search",
|
28 |
+
func=DuckDuckGoSearch().run,
|
29 |
+
description="Use this tool to search the web using DuckDuckGo."
|
30 |
+
)
|
31 |
+
|
32 |
google_search = GoogleSearchTool(provider="serper")
|
33 |
python_interpreter = PythonInterpreterTool(authorized_imports = [
|
34 |
# standard library
|