CarolineHuang/front-page-news
1
FrontPage
AI-powered newspaper front page generator. Enter a topic and get a curated front page built from live news search results, delivered to your inbox.
How it works
- Planner — breaks your topic into targeted search queries with dates
- Search — gathers articles from trusted sources (Reuters, AP, BBC, Bloomberg)
- Writer — formats stories into a newspaper-style front page
- Email — sends the front page as a styled HTML email
Local development
pip install -r requirements.txt
cp .env.example .env # fill in your API keys
python app.pyHugging Face Space secrets
Add these in Settings → Repository secrets:
Project structure
FrontPage/
├── app.py # Gradio UI entry point
├── requirements.txt
├── frontpage/
│ ├── websearch_manager.py # Orchestrates the agent pipeline
│ └── agents/
│ ├── planner_agent.py # Plans search queries
│ ├── search_agent.py # Gathers news articles
│ ├── writer_agent.py # Writes the front page
│ └── email_agent.py # Sends HTML email