Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,25 +18,19 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 18 |
"""
|
| 19 |
return "What magic will you build ?"
|
| 20 |
|
| 21 |
-
@tool
|
| 22 |
-
def web_search(query:str)-> str:
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
Args:
|
| 35 |
-
query: search query
|
| 36 |
-
"""
|
| 37 |
-
search = DuckDuckGoSearchRun()
|
| 38 |
-
result = search.run(query)
|
| 39 |
-
return result
|
| 40 |
|
| 41 |
@tool
|
| 42 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 18 |
"""
|
| 19 |
return "What magic will you build ?"
|
| 20 |
|
| 21 |
+
# @tool
|
| 22 |
+
# def web_search(query:str)-> str:
|
| 23 |
+
# """A tool that performs web searches.
|
| 24 |
+
# Args:
|
| 25 |
+
# query: search query
|
| 26 |
+
# """
|
| 27 |
+
# search = DuckDuckGoSearchTool()
|
| 28 |
+
# result = search.forward(query)
|
| 29 |
+
# return result
|
| 30 |
|
| 31 |
+
search = DuckDuckGoSearchTool()
|
| 32 |
+
web_search = DuckDuckGoSearchTool()
|
| 33 |
+
# visit_webpage = VisitWebpageTool()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
@tool
|
| 36 |
def get_current_time_in_timezone(timezone: str) -> str:
|