Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,15 @@ deepseek_model = HfApiModel(
|
|
108 |
|
109 |
@tool
|
110 |
def summarize_news(articles: List[Dict]) -> str:
|
111 |
-
"""Creates a summary of the news articles followed by a list of sources.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
if not articles or not isinstance(articles, list):
|
113 |
return "No articles to summarize"
|
114 |
|
|
|
108 |
|
109 |
@tool
|
110 |
def summarize_news(articles: List[Dict]) -> str:
|
111 |
+
"""Creates a summary of the news articles followed by a list of sources.
|
112 |
+
|
113 |
+
Args:
|
114 |
+
articles: List of article dictionaries containing news article information including title,
|
115 |
+
source, date, link, snippet, and full_content fields
|
116 |
+
|
117 |
+
Returns:
|
118 |
+
A string containing a summary followed by article references
|
119 |
+
"""
|
120 |
if not articles or not isinstance(articles, list):
|
121 |
return "No articles to summarize"
|
122 |
|