Spaces:
Sleeping
Sleeping
Update app.py
Browse filesAdding DDS to the custom tool to search for the text given with max results given.
app.py
CHANGED
|
@@ -16,7 +16,10 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 16 |
arg1: the first argument
|
| 17 |
arg2: the second argument
|
| 18 |
"""
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
@tool
|
| 22 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 16 |
arg1: the first argument
|
| 17 |
arg2: the second argument
|
| 18 |
"""
|
| 19 |
+
#will try to call DuckDucksearch in this tool
|
| 20 |
+
results = ddgs.text(arg1, max_results=arg2)
|
| 21 |
+
return {results}
|
| 22 |
+
#return "What magic will you build ?"
|
| 23 |
|
| 24 |
@tool
|
| 25 |
def get_current_time_in_timezone(timezone: str) -> str:
|