Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,6 @@ REPO_ID = "your-username/news-rag-db"
|
|
| 19 |
LOCAL_DB_DIR = "chroma_db"
|
| 20 |
client = HuggingFaceInferenceClient(model=HF_MODEL, api_key=HF_API_TOKEN)
|
| 21 |
|
| 22 |
-
# Updated RSS feeds
|
| 23 |
RSS_FEEDS = [
|
| 24 |
"https://www.sciencedaily.com/rss/top/science.xml",
|
| 25 |
"https://www.horoscope.com/us/horoscopes/general/rss/horoscope-rss.aspx",
|
|
@@ -30,7 +29,42 @@ RSS_FEEDS = [
|
|
| 30 |
"https://www.wired.com/feed/rss",
|
| 31 |
"https://www.nasa.gov/rss/dyn/breaking_news.rss",
|
| 32 |
"https://www.nationalgeographic.com/feed/",
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
]
|
| 35 |
|
| 36 |
# Embedding model
|
|
|
|
| 19 |
LOCAL_DB_DIR = "chroma_db"
|
| 20 |
client = HuggingFaceInferenceClient(model=HF_MODEL, api_key=HF_API_TOKEN)
|
| 21 |
|
|
|
|
| 22 |
RSS_FEEDS = [
|
| 23 |
"https://www.sciencedaily.com/rss/top/science.xml",
|
| 24 |
"https://www.horoscope.com/us/horoscopes/general/rss/horoscope-rss.aspx",
|
|
|
|
| 29 |
"https://www.wired.com/feed/rss",
|
| 30 |
"https://www.nasa.gov/rss/dyn/breaking_news.rss",
|
| 31 |
"https://www.nationalgeographic.com/feed/",
|
| 32 |
+
"https://www.nature.com/nature.rss",
|
| 33 |
+
"https://www.scientificamerican.com/rss/",
|
| 34 |
+
"https://www.newscientist.com/feed/home/",
|
| 35 |
+
"https://www.livescience.com/feeds/all",
|
| 36 |
+
"https://www.hindustantimes.com/feed/horoscope/rss",
|
| 37 |
+
"https://www.washingtonpost.com/wp-srv/style/horoscopes/rss.xml",
|
| 38 |
+
"https://astrostyle.com/feed/",
|
| 39 |
+
"https://www.vogue.com/feed/rss",
|
| 40 |
+
"https://feeds.bbci.co.uk/news/politics/rss.xml",
|
| 41 |
+
"https://www.reuters.com/arc/outboundfeeds/newsletter-politics/?outputType=xml",
|
| 42 |
+
"https://www.politico.com/rss/politics.xml",
|
| 43 |
+
"https://thehill.com/feed/",
|
| 44 |
+
"https://www.aps.org/publications/apsnews/updates/rss.cfm",
|
| 45 |
+
"https://www.quantamagazine.org/feed/",
|
| 46 |
+
"https://www.sciencedaily.com/rss/matter_energy/physics.xml",
|
| 47 |
+
"https://physicsworld.com/feed/",
|
| 48 |
+
"https://www.swpc.noaa.gov/rss.xml",
|
| 49 |
+
"https://www.nasa.gov/rss/dyn/solar_system.rss",
|
| 50 |
+
"https://weather.com/science/space/rss",
|
| 51 |
+
"https://www.space.com/feeds/space-weather",
|
| 52 |
+
"https://www.accuweather.com/en/rss",
|
| 53 |
+
"https://feeds.bbci.co.uk/weather/feeds/rss/5day/world/",
|
| 54 |
+
"https://www.weather.gov/rss",
|
| 55 |
+
"https://www.foxweather.com/rss",
|
| 56 |
+
"https://techcrunch.com/feed/",
|
| 57 |
+
"https://arstechnica.com/feed/",
|
| 58 |
+
"https://gizmodo.com/rss",
|
| 59 |
+
"https://www.theverge.com/rss/index.xml",
|
| 60 |
+
"https://www.space.com/feeds/all",
|
| 61 |
+
"https://www.universetoday.com/feed/",
|
| 62 |
+
"https://skyandtelescope.org/feed/",
|
| 63 |
+
"https://www.esa.int/rss",
|
| 64 |
+
"https://www.smithsonianmag.com/rss/",
|
| 65 |
+
"https://www.popsci.com/rss.xml",
|
| 66 |
+
"https://www.discovermagazine.com/rss",
|
| 67 |
+
"https://www.atlasobscura.com/feeds/latest"
|
| 68 |
]
|
| 69 |
|
| 70 |
# Embedding model
|