This project is a Text Summarization Web Application built using a fine-tuned T5 Transformer model. It takes long dialogues or text as input and generates a concise summary.
- 🔹 Text summarization using Transformer (T5)
- 🔹 Clean and responsive web UI
- 🔹 FastAPI backend for real-time inference
- 🔹 Preprocessing + tokenization pipeline
- 🔹 Beam search for better summary generation
- Python
- FastAPI
- HuggingFace Transformers
- PyTorch
- HTML, CSS, JavaScript
Text Summarizer/
│
├── app.py # FastAPI backend
├── index.html # Frontend UI
├── saved_summary_model/ # Trained T5 model
│ ├── config.json
│ ├── model.safetensors
│ ├── tokenizer.json
│ └── ...
└── README.md
git clone https://github.com/your-username/text-summarizer.git
cd text-summarizer
pip install fastapi uvicorn transformers torch
uvicorn app:app --reload
http://127.0.0.1:8000
http://127.0.0.1:8000/docs
A: Hi, how are you?
B: I'm fine. Let's meet tomorrow.
They plan to meet tomorrow.
- Model: T5 (Text-to-Text Transfer Transformer)
- Fine-tuned on: SAMSum Dataset
- Task: Dialogue Summarization
- Generation Method: Beam Search (num_beams=4)
- 🔹 Add ROUGE score evaluation
- 🔹 Support PDF / file summarization
- 🔹 Deploy on cloud (Render / AWS)
- 🔹 Improve model accuracy with larger dataset
- 🔹 Add user authentication
Pull requests are welcome! For major changes, please open an issue first.
This project is open-source and available under the MIT License.
Ankita Ghavate
Give it a ⭐ on GitHub!