An end-to-end, AI-powered web application for real-time, abstractive news summarization using a Seq2Seq LSTM model with Attention — integrated with Django backend, web scraping for live news, and a responsive frontend UI.
In the digital age, readers face information overload from countless news sources. Manually scanning lengthy articles is inefficient and impractical.
✅ Solution: Build an intelligent system that can automatically fetch live news articles, summarize them using an AI model, and display them to users through a clean web interface.
Technology | Purpose | Why? |
---|---|---|
Python 3.x | Core language for ML and backend development | High ecosystem support for ML, data, and web frameworks. |
TensorFlow 2.x / Keras | Deep learning framework for model implementation | Native support for Seq2Seq + Attention, easy TPU integration. |
Pandas / NumPy | Data manipulation and numerical computation | Efficient, reliable, and industry standard. |
Matplotlib | Visualizing training metrics | Quick and effective for loss/accuracy plots. |
Contractions | Text normalization library | Handles text cleaning and standardization. |
Django | Backend web framework | Secure, scalable, Python-native framework with ORM. |
BeautifulSoup / Requests | Web scraping of live news articles | Light, flexible scraping for dynamic news updates. |
HTML/CSS/JS (Bootstrap) | Frontend for UI rendering | Rapidly build responsive, clean user interfaces. |
TPU Runtime (Colab/Kaggle) | Accelerated training of deep learning models | Dramatically reduces training time for large NLP models. |
+-----------------+ +----------------+ +-------------------+
| Preprocess | ---> | Encoder | ---> | Attention Layer |
| Clean + Token | | (Bi-LSTM) | | (Context Vector) |
+-----------------+ +----------------+ +-------------------+
|
V
+----------------+
| Decoder |
| (LSTM + FC) |
+----------------+
|
V
+----------------+
| Summary |
+----------------+
|
V
+----------------+
| Django Backend |
| (Model Serving & |
| Web Scraping) |
+----------------+
|
V
+----------------+
| Frontend UI |
| (Responsive App) |
+----------------+
Workflow:
news_summary.csv
)Prerequisites:
Steps:
pip install -r requirements.txt
python manage.py runserver
index.html
├── major-project-model-final.ipynb # ML model development & training
├── backend/ # Django backend serving model & scraping
├── frontend/ # Web frontend for users
└── README.md # Project documentation