A modern, web-based AI Text Summarization application that uses state-of-the-art Natural Language Processing (NLP) models to transform long articles into concise, readable summaries.
- Instant Summarization: Powered by the
sshleifer/distilbart-cnn-12-6model for high-quality extraction and abstraction. - Customizable Length: Choose between Concise, Balanced, and Detailed summary modes.
- Real-time Metrics:
- Word Count: Tracks input and output word counts as you type or generate.
- Readability Score: Calculates the Flesch Reading Ease score to help you understand the complexity of your text.
- Modern UI: A premium, dark-themed interface with glassmorphism effects and smooth transitions.
- Streaming Response: Summaries are streamed in real-time, providing immediate visual feedback.
- Backend: Flask (Python)
- AI/ML: Hugging Face Transformers (DistilBART)
- Frontend: Vanilla HTML5, CSS3, and JavaScript
- Styling: Modern CSS with CSS Variables and Flexbox
- Python 3.8 or higher
pip(Python package manager)
-
Clone the repository:
git clone https://github.com/LightYagami625/Text-Summary-Web.git cd Text-Summary-Web -
Create a virtual environment (Optional but recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Start the Flask server:
python app.py
-
Open your browser and navigate to:
http://127.0.0.1:5000
- Go to HuggingFace.co (Create an account if not).
- Create an access token and paste it inside the terminal
The application uses the Flesch Reading Ease formula:
Score = 206.835 - 1.015 * (Total Words / Total Sentences) - 84.6 * (Total Syllables / Total Words)
- 90-100: Very Easy (5th grade level)
- 60-70: Standard (8th-9th grade level)
- 0-30: Very Difficult (Professional/Academic)
Developed with ❤️ by Nerd-SWAYAM
