Mayank14/Dyslexia-AI-Assistant
0
Dyslexia AI Assistant
A web application that simplifies complex text using AI to help people with dyslexia and reading difficulties.
Features
- AI Text Simplification: Uses a T5 model to make complex text easier to read
- Dyslexia-Friendly Mode: Toggle for better readability with increased spacing
- Text-to-Speech: Built-in speech synthesis for both input and output
- Responsive Design: Works on desktop, tablet, and mobile
- Accessibility: High contrast, keyboard navigation, and screen reader support
Quick Start
Requirements
- Python 3.8 or higher
- pip
Installation
- Install dependencies:
pip install -r requirements.txt- Run the app:
python app.py- Open your browser and go to:
http://localhost:5000How to Use
- Enter text in the "Original Text" box
- Click "Simplify Text" to process it
- Read the simplified version in the output box
- Use TTS buttons to hear the text read aloud
- Toggle "Dyslexia-Friendly" for enhanced readability
API Endpoints
POST /simplify
Simplifies text using the T5 model.
Request:
{
"text": "Your complex text here"
}Response:
{
"simplified_text": "Your simplified text here",
"original_length": 25,
"simplified_length": 20
}Project Structure
Dyslexia AI Assistant/
├── app.py # Flask backend
├── requirements.txt # Dependencies
├── templates/
│ └── index.html # Main page
├── static/
│ ├── css/styles.css # Styling
│ └── js/ # JavaScript files
└── t5_simplifier_model/ # AI model filesDevelopment
This application is built with:
- Flask (Backend)
- T5 Transformer Model
- HTML/CSS/JavaScript (Frontend)
The model is hosted on Hugging Face Hub at: Mayank14/t5-simplifier-model
Troubleshooting
Model not loading?
- Make sure the
t5_simplifier_modelfolder is in the right place - Check that you have enough RAM (model needs ~1GB)
Text-to-Speech not working?
- Use a modern browser
- Some browsers need user interaction before allowing TTS
App won't start?
- Check that Python 3.8+ is installed
- Make sure all dependencies are installed with
pip install -r requirements.txt
Developed by Mayank Bansal
This project was created as an independent initiative to make reading more accessible for individuals with dyslexia and other reading challenges.
