Spaces:
Sleeping
Sleeping
Update newsletter_api.py
Browse files- 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.
|
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 = []
|