An AI-powered virtual assistant designed specifically to support individuals with ADHD. This tool helps with routine management, time awareness, task organization, and provides ADHD-friendly advice.
- 💬 Natural Conversation: Chat naturally with an AI assistant trained to understand ADHD challenges
- ⏰ Routine Tracking: Log and get assistance with daily routines
- 🍔 Meal Planning: Get ADHD-friendly meal suggestions based on preferences
- 🎯 Task Management: Break down complex tasks into manageable steps
- 🎤 Voice Input (Local version only): Speak to your assistant using speech recognition
- Python
- pip package manager
-
Clone the repository
git clone https://github.com/MohammadHR10/ADHD-virtual-assistant.git cd ADHD-virtual-assistant -
Set up a virtual environment
python -m venv venv # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate
-
Install dependencies
pip install -r hi/requirements.txt
-
Set up environment variables
- Create a
.envfile in the project root
GROQ_API_KEY=your_groq_api_key_here BACKEND_URL=http://localhost:5001/chat - Create a
-
Start the backend server
python hi/backend.py
-
Start the frontend (in a new terminal window)
streamlit run hi/frontend2.py
-
Open your browser and navigate to:
You can run the application using Docker and Docker Compose for an isolated and reproducible environment.
-
Prerequisites
- Docker and Docker Compose installed
-
Set up environment variables
- Create a
.envfile in the project root:
GROQ_API_KEY=your_groq_api_key_here - Create a
-
Build and run containers
docker compose build docker compose up -d
-
Access the application
- Open http://localhost:8501 in your browser
-
Stop the application
docker compose down
GROQ_API_KEY: Your API key for Groq LLM access
-
Using .env file (recommended)
- Create a
.envfile in the project root (this will not be committed to git)
GROQ_API_KEY=sk-your-real-key - Create a
-
At runtime
GROQ_API_KEY=sk-your-real-key docker compose up -d
-
In docker-compose.yml (not recommended for secrets)
services: backend: environment: - GROQ_API_KEY=sk-your-real-key
BACKEND_URL: Override the backend API endpoint- Default:
http://backend:5001/chat(when using Docker Compose) - Example override in docker-compose.yml:
frontend: environment: - BACKEND_URL=http://custom-backend:5001/chat
- Default:
-
View logs
docker compose logs backend docker compose logs frontend
-
Rebuild after code changes
docker compose build docker compose up -d
-
Test backend health
curl http://localhost:5001/health
For more control over container networking and configuration:
-
Create a custom network
docker network create adhd-assistant
-
Run backend container
docker run --name adhd-backend \ --network adhd-assistant \ -p 5001:5001 \ -e GROQ_API_KEY=sk-your-real-key \ -d adhd-virtual-assistant-backend
-
Run frontend container
docker run --name adhd-frontend \ --network adhd-assistant \ -p 8501:10000 \ -e BACKEND_URL=http://adhd-backend:5001/chat \ -d adhd-virtual-assistant-frontend
-
Stop and remove containers
docker stop adhd-frontend adhd-backend docker rm adhd-frontend adhd-backend
The ADHD Virtual Assistant uses LLM technology to provide personalized support:
- Input Analysis: Your messages are analyzed for ADHD-related concerns
- Contextual Response: Responses are tailored to be ADHD-friendly (clear, concise, supportive)
- Memory: The system remembers your routines and challenges to provide consistent support
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b Branch_Name) - Commit your changes (
git commit -m "Describe what you changed") - Push to the branch (
git push origin Branch_Name) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.