Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,11 +28,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 28 |
#Following my creation.
|
| 29 |
@tool
|
| 30 |
def get_news(topic: str) -> str:
|
| 31 |
-
"""Finds
|
| 32 |
Args:
|
| 33 |
topic: The topic to search for news.
|
| 34 |
-
Returns:
|
| 35 |
-
A string reporting an url of a news related to the topic or an error message.
|
| 36 |
"""
|
| 37 |
try:
|
| 38 |
search_tool=DuckDuckGoSearchTool(max_results=1)
|
|
|
|
| 28 |
#Following my creation.
|
| 29 |
@tool
|
| 30 |
def get_news(topic: str) -> str:
|
| 31 |
+
"""Finds a newspaper article about a given topic.
|
| 32 |
Args:
|
| 33 |
topic: The topic to search for news.
|
|
|
|
|
|
|
| 34 |
"""
|
| 35 |
try:
|
| 36 |
search_tool=DuckDuckGoSearchTool(max_results=1)
|