NewsSense is a Flask-based web app that allows users to upload or link to news articles and receive:
- A concise summary
- A detailed bias score and rubric
- Highlighted biased phrases and an unbiased rewrite
- Flagged misinformation claims based on trusted sources
- Uses OpenAI to summarize and detect bias
- Verifies factual claims using an agentic AI
- Supports article input via text, PDF, DOCX, or URL
- Live scrolling feed of trusted news headlines
- Interactive highlights with tooltips for bias and misinformation
- Clone the repo
git clone https://github.com/yourusername/newssense.git
cd newssense- Create a virtual environment (Optional)
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows- Install dependencies
pip install -r requirements.txt- Set up environment variables
Create a .env file in the root directory with the following content:
OPENAI_API_KEY=...
NEWS_API_KEY=...
- Run the App
python app.py