aminaj commited on
Commit
e54a040
·
verified ·
1 Parent(s): e08a2c4

Update newsletter_api.py

Browse files
Files changed (1) hide show
  1. newsletter_api.py +1 -1
newsletter_api.py CHANGED
@@ -38,7 +38,7 @@ async def extract_titles_from_rss(feed_urls: list[str]) -> list[str]:
38
  return {"Error": str(e)}
39
 
40
  @app.post("/extract_news")
41
- def extract_news_from_rss(feed_urls: list[str], topic: str, threshold: float = 0.5):
42
  """Extracts news articles from RSS feeds relevant to a single topic using embeddings."""
43
  try:
44
  topic_articles = []
 
38
  return {"Error": str(e)}
39
 
40
  @app.post("/extract_news")
41
+ def extract_news_from_rss(feed_urls: list[str], topic: str, threshold: float = 0.7):
42
  """Extracts news articles from RSS feeds relevant to a single topic using embeddings."""
43
  try:
44
  topic_articles = []