The Focus Mode Accessibility Tool is a web-based application designed to simplify text for people with ADHD and autism. It provides customizable focus profiles (light, medium, aggressive) and uses AI to simplify complex texts into more digestible formats.
- Text Simplification: Simplifies articles, documents, and web pages for better readability.
- Focus Profiles: Choose between light, medium, or aggressive simplification.
- Content Extraction: Extracts relevant content from web pages (e.g., news articles, Wikipedia pages).
- Text-to-Speech (TTS): Option to read simplified text aloud with sentence highlighting (optional feature).
- Accessible Interface: Fully accessible with ARIA labels, keyboard navigation, and high contrast mode.
- Frontend: HTML, CSS, JavaScript
- Backend: Python (FastAPI)
- AI Model: HuggingFace, OpenRouter API for text simplification
- Libraries: BeautifulSoup for content extraction
- Create a Python virtual environment:
cd backend
python -m venv venv- Activate the virtual environment:
- Windows:
venv\Scripts\activate - Mac/Linux:
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt- Create a
.envfile from the example:
copy .env.example .env- Add your API key to the
.envfile:
API_KEY=your_actual_api_key_here
- Run the backend server:
python app.pyThe API will be available at http://localhost:5000
- Open
frontend/index.htmlin a web browser, or serve it using a local server:
cd frontend
python -m http.server 8000- Access the application at
http://localhost:8000
GET /health
Returns the API status.
GNU General Public License v3.0