An AI-powered web application that simplifies complex legal or contract language into clear, easy-to-understand text.
Built using Streamlit, Hugging Face Transformers, and OpenAI API, the system performs text simplification, summarization, and readability analysis.
- Secure sign-up, sign-in, and password recovery (JWT + bcrypt encryption)
- User-specific session management with SQLite backend
- Upload contracts in PDF, DOCX, or TXT format
- Calculates readability metrics: Flesch-Kincaid Grade & Gunning Fog Index
- Generates top keywords and complexity analysis
- AI-based simplification using FLAN-T5 and BART models
- Side-by-side comparison of original vs. simplified text
- Adjustable simplification levels — Basic, Intermediate, and Advanced
- Monitor simplification requests, user activity, and system performance
- Manage glossary or review AI outputs (future-ready)
- Fully containerized for deployment using Streamlit Cloud, Hugging Face Spaces, or Docker
| Component | Technology |
|---|---|
| Frontend / UI | Streamlit |
| Backend | Python |
| Database | SQLite |
| AI / NLP Models | FLAN-T5, BART-large-cnn |
| Authentication | JWT, bcrypt |
| Environment Management | venv |
| Styling | Custom CSS (modern, minimalist white-blue theme) |
git clone https://github.com/your-username/contract-language-simplifier.git
cd contract-language-simplifierpython -m venv venv
venv\Scripts\activate # (Windows)
# or
source venv/bin/activate # (Mac/Linux)
pip install -r requirements.txt
Create a .streamlit/secrets.toml file in your project directory and add the following:
OPENAI_API_KEY = "your-api-key-here"streamlit run app.py
Milestone 1: User Authentication (Login, Signup, JWT-based Security)
Milestone 2: Text Analysis and Readability Metrics Integration
Milestone 3: Contract Simplification with AI-Powered Text Generation
Milestone 4: Multi-Level Simplification and Admin Dashboard
Dynamic glossary generation using AI
Real-time feedback and rating system
Integration with document management APIs (Google Drive, DocuSign)
Fine-tuning model on Indian legal datasets
Cloud-based user analytics dashboard
Dhanushi Gupta B.Tech (CSE) | Machine Learning & AI Enthusiast 📧 [dhanushi.ug23@nsut.ac.in ]
Arnav Gupta B.Tech (CSE) | AI Enthusiast 📧 [2k22.csiot.2212865@gmail.com ]