This is the main repository for the final MyTherapyPal application. It consists of a flutter desktop, mobile & web user interface application with account registration & login functionality, chat functionality and an AI mental health assistant chatbot, which is implemented using a REST API web service powered by Python Flask.
The AI mental health assistant is using a 4-bit quantized Llama-2-13B model called TheBloke/Llama-2-13B-chat-GPTQ. The functionality of which is provided over flask API locally. This was developed using an NVidia 4060Ti 16GB graphics card with CUDA 12.3. There is a conda environment yaml file included to setup the environment. Below are the steps to set this up.
conda env create -f chatCBTQ.yml
conda activate chatCBTQ
cd chatCBT
python app.py
ngrok http http://localhost:5000
flutter run
Choose either Chrome, Edge, Windows, Android (if connected to device or emulator), iOS or macOS. Selecting Windows may require Visual Studio being installed.