Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,10 +11,10 @@ from tools.web_search import DuckDuckGoSearchTool
|
|
| 11 |
@tool
|
| 12 |
def DuckDuckGoSearchTool (web_search: str) -> str:
|
| 13 |
""""A tool Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results."""
|
| 14 |
-
inputs = {'query': {'type': 'string',
|
| 15 |
output_type = "string"
|
| 16 |
|
| 17 |
-
|
| 18 |
super().__init__()
|
| 19 |
self.max_results = max_results
|
| 20 |
try:
|
|
|
|
| 11 |
@tool
|
| 12 |
def DuckDuckGoSearchTool (web_search: str) -> str:
|
| 13 |
""""A tool Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results."""
|
| 14 |
+
inputs = {'query': {'type': 'string','description': 'The search query to perform.'}}
|
| 15 |
output_type = "string"
|
| 16 |
|
| 17 |
+
def __init__(self, max_results=10, **kwargs):
|
| 18 |
super().__init__()
|
| 19 |
self.max_results = max_results
|
| 20 |
try:
|