Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,12 +9,17 @@ from Gradio_UI import GradioUI
|
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
-
def
|
| 13 |
-
|
| 14 |
-
"""
|
|
|
|
|
|
|
| 15 |
Args:
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
| 18 |
"""
|
| 19 |
try:
|
| 20 |
results = DuckDuckGoSearchTool().text(
|
|
|
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
+
def get_search_results(query_string:str,max_results:int) -> str:
|
| 13 |
+
def DuckDuckGoSearchTool(query_string: str, max_results: int) -> str:
|
| 14 |
+
"""
|
| 15 |
+
Search DuckDuckGo and return text results.
|
| 16 |
+
|
| 17 |
Args:
|
| 18 |
+
query_string: The search query to send to DuckDuckGo.
|
| 19 |
+
max_results: The maximum number of search results to return.
|
| 20 |
+
|
| 21 |
+
Returns:
|
| 22 |
+
A text representation of the search results.
|
| 23 |
"""
|
| 24 |
try:
|
| 25 |
results = DuckDuckGoSearchTool().text(
|