Spaces:
Sleeping
Sleeping
Commit History
-
Globe: live news from RSS aggregator with VADER sentiment
Sam Cole +1: Claude Opus 4.7 (1M context)Backend: pull 10 free RSS feeds (BBC, Guardian, Al Jazeera, NYT, DW, CNN, NPR, Reuters, AP, France24) in parallel via aiohttp, parse with feedparser, score with VADER (vaderSentiment). Match articles to the 40 globe countries via a substring + word-boundary alias dictionary (names, capitals, leaders, adjectives). Group articles by country, average sentiment, surface top-5 headlines per country sorted by polarisation. Endpoint behaviour: cache-first (30 min TTL). On cold cache, blocks for up to ~15s while the RSS pipeline runs; subsequent users hit the cache. A startup prewarm fires ~8s after boot so most users never wait. Falls back to synthesized values for any country with no matched articles. Initial local test: 27 of 40 countries got real headlines on first call, ~500ms after server startup. Replaces the GDELT integration that was rate-limited to ~1/40 countries. Frontend: 'live from GDELT' label corrected to 'live from RSS'. Frontend already consumed the same response shape so …40aab9f
-
Upload Dockerfile
Verified signatureade961c -
Upload Dockerfile
Verified signaturedf342f9
-
Upload Dockerfile
Verified signature943b088 -
Upload Dockerfile
Verified signature7226fcb -
Upload Dockerfile
Verified signature7e01049 -
Upload Dockerfile
Verified signature47408d1 -
Upload Dockerfile with huggingface_hub
Verified signatureadb669d