Spaces:
Sleeping
Sleeping
update app.py
Browse files
app.py
CHANGED
|
@@ -18,17 +18,6 @@ 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 get_information_from_Duck_duck_go (question: str) -> str:
|
| 23 |
-
"""A tool that gets a state's capital and alttitude
|
| 24 |
-
Args:
|
| 25 |
-
STATE: A string representing a valid state
|
| 26 |
-
"""
|
| 27 |
-
try:
|
| 28 |
-
state_ = DuckDuckGoSearchTool(STATE)
|
| 29 |
-
return f"''{state_}''"
|
| 30 |
-
except Exception as e:
|
| 31 |
-
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 32 |
|
| 33 |
|
| 34 |
|
|
|
|
| 18 |
"""
|
| 19 |
return "What magic will you build ?"
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
|