Spaces:
Sleeping
Sleeping
Quintino Fernandes
commited on
Commit
·
01f1ccd
1
Parent(s):
542722d
n articles change
Browse files
main.py
CHANGED
@@ -100,7 +100,7 @@ class QueryProcessor:
|
|
100 |
def _generate_summary(self, articles: List[Dict[str, Any]]) -> Dict[str, Any]:
|
101 |
"""Generate summary from articles with fallback handling"""
|
102 |
try:
|
103 |
-
contents = [article["content"] for article in articles[:
|
104 |
sentences = []
|
105 |
|
106 |
for content in contents:
|
|
|
100 |
def _generate_summary(self, articles: List[Dict[str, Any]]) -> Dict[str, Any]:
|
101 |
"""Generate summary from articles with fallback handling"""
|
102 |
try:
|
103 |
+
contents = [article["content"] for article in articles[:3]]
|
104 |
sentences = []
|
105 |
|
106 |
for content in contents:
|