Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,8 +19,8 @@ def fetch_headlines(topic: str) -> str:
|
|
| 19 |
Returns:
|
| 20 |
A formatted string with up to 5 news headlines and their links.
|
| 21 |
"""
|
|
|
|
| 22 |
try:
|
| 23 |
-
search_tool = DuckDuckGoSearchTool()
|
| 24 |
query = f"{topic} news"
|
| 25 |
results = search_tool(query)
|
| 26 |
|
|
|
|
| 19 |
Returns:
|
| 20 |
A formatted string with up to 5 news headlines and their links.
|
| 21 |
"""
|
| 22 |
+
search_tool = DuckDuckGoSearchTool()
|
| 23 |
try:
|
|
|
|
| 24 |
query = f"{topic} news"
|
| 25 |
results = search_tool(query)
|
| 26 |
|