Spaces:
Sleeping
Sleeping
fix
Browse files
app.py
CHANGED
|
@@ -26,12 +26,11 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 26 |
#Following my creation.
|
| 27 |
@tool
|
| 28 |
def get_fun_fact(topic: str) -> str:
|
| 29 |
-
"""
|
| 30 |
-
Finds a fun fact about a given topic using DuckDuckGo.
|
| 31 |
Args:
|
| 32 |
-
topic
|
| 33 |
Returns:
|
| 34 |
-
|
| 35 |
"""
|
| 36 |
try:
|
| 37 |
search_tool = DuckDuckGoSearchTool()
|
|
|
|
| 26 |
#Following my creation.
|
| 27 |
@tool
|
| 28 |
def get_fun_fact(topic: str) -> str:
|
| 29 |
+
"""Finds a fun fact about a given topic using DuckDuckGo.
|
|
|
|
| 30 |
Args:
|
| 31 |
+
topic: The topic to search for a fun fact about.
|
| 32 |
Returns:
|
| 33 |
+
A string reporting a fun fact related to the topic or an error message.
|
| 34 |
"""
|
| 35 |
try:
|
| 36 |
search_tool = DuckDuckGoSearchTool()
|