aminaj commited on
Commit
366654f
·
verified ·
1 Parent(s): afd0a14

Update newsletter_api.py

Browse files
Files changed (1) hide show
  1. newsletter_api.py +2 -1
newsletter_api.py CHANGED
@@ -75,7 +75,8 @@ def extract_news_from_rss(feed_urls: list[str], topic: str, threshold: float = 0
75
  "topic": topic,
76
  "title": title,
77
  "link": link,
78
- "summary": summary
 
79
  })
80
 
81
  # Sort articles by similarity score
 
75
  "topic": topic,
76
  "title": title,
77
  "link": link,
78
+ "summary": summary,
79
+ "similarity": score
80
  })
81
 
82
  # Sort articles by similarity score