Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def get_ai_news(keyword: str, language: str = "en", page_size: int=5) -> str:
|
|
| 38 |
|
| 39 |
articles = data.get("articles", [])
|
| 40 |
if not articles:
|
| 41 |
-
return f"No recent news found for '{keyword}.'
|
| 42 |
|
| 43 |
news_list = []
|
| 44 |
for i, article in enumerate(articles):
|
|
|
|
| 38 |
|
| 39 |
articles = data.get("articles", [])
|
| 40 |
if not articles:
|
| 41 |
+
return f"No recent news found for '{keyword}.'"
|
| 42 |
|
| 43 |
news_list = []
|
| 44 |
for i, article in enumerate(articles):
|