A modern, responsive web application that simplifies complex legal documents using AI. Upload your Terms & Conditions files and get easy-to-understand summaries with customizable length settings.
- Fully Responsive Design - Works seamlessly on mobile, tablet, and desktop
- AI-Powered Summarization - Uses Legal Pegasus model for accurate legal text processing
- Multiple File Formats - Supports PDF, TXT, and DOCX files (up to 8MB)
- ⚙Customizable Output - Adjust summary length with min/max word limits
- PDF Export - Download summaries as formatted PDF files
- Modern UI/UX - Clean, intuitive interface with smooth animations
- Drag & Drop - Easy file upload with drag and drop support
- Feedback System - Built-in user feedback collection
- Backend: Flask (Python)
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- AI Model: Legal Pegasus
- Text Processing: KeyBERT for vocabulary simplification
- Styling: Modern CSS with CSS Grid and Flexbox
- Deployment: Railway
- Upload: Drag and drop or select your Terms & Conditions document
- Configure: Set minimum and maximum word limits for summary sections
- Process: AI analyzes the document and extracts key clauses
- Simplify: Complex legal jargon is replaced with everyday language
- Download: Get your simplified summary as a PDF file
-
Clone the repository
git clone https://github.com/ChiragAJain/Terms-and-Condition-Summariser-using-NLP cd terms-conditions-summarizer
-
Install dependencies
pip install -r requirements.txt
-
Run the application
python app.py
-
Open your browser Navigate to
http://localhost:5000
The application features a mobile-first responsive design that adapts to all screen sizes:
- Mobile (< 480px): Optimized touch interface with stacked layouts
- Tablet (480px - 768px): Balanced layout with improved spacing
- Desktop (> 768px): Full-featured layout with side-by-side elements
- Modern Design System: Consistent colors, typography, and spacing
- Smooth Animations: Subtle transitions and hover effects
- Loading States: Visual feedback during file processing
- Error Handling: User-friendly error messages and validation
- Accessibility: Semantic HTML and keyboard navigation support
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is open source and available under the MIT License.
- Legal Pegasus Model for legal text summarization
- KeyBERT for vocabulary simplification
- Modern web design principles and responsive design patterns