Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ class CustomDuckDuckGoSearchTool(DuckDuckGoSearchTool):
|
|
| 41 |
output_type = "string"
|
| 42 |
|
| 43 |
def __init__(self, max_results: int = 10, rate_limit: float | None = 1.0, backend: str = "auto", **kwargs):
|
| 44 |
-
super().__init__(max_results=max_results,
|
| 45 |
self.backend = backend # Add "backend" as new parameter
|
| 46 |
|
| 47 |
def forward(self, query: str) -> str:
|
|
|
|
| 41 |
output_type = "string"
|
| 42 |
|
| 43 |
def __init__(self, max_results: int = 10, rate_limit: float | None = 1.0, backend: str = "auto", **kwargs):
|
| 44 |
+
super().__init__(max_results=max_results, **kwargs)
|
| 45 |
self.backend = backend # Add "backend" as new parameter
|
| 46 |
|
| 47 |
def forward(self, query: str) -> str:
|