E.m.m.a is a conversational agent designed to mimic a psychotherapist in order to provide emotional support to people with anxiety & depression. At its core, E.m.m.a is a chatbot trained on a text dataset using Deep Learning and Natural Language Processing techniques.
E.m.m.a can provide general advice regarding anxiety and depression, answer questions related to mental health and make daily conversations. E.m.m.a is obviously not a licensed physician, and it does not make diagnoses or write prescriptions. E.m.m.a offers help and support rather than treatment. E.m.m.a is not equipped to deal with real mental health crises either. When it senses someone is in trouble, it suggests they seek help in the real world and provides text and hotline resources. E.m.m.a doesn’t seek to remove the human element in therapy either but is rather a “gateway therapy,” to give people a good first experience, and even help them realise when they need a more intense form of intervention.
This project, EmmaAI has been created using the following Tech Stacks
-HTML
-CSS
-JAVASCRIPT
-PHP
-PYTHONOther Technologies
-FLASK
-FLASKCORS
-TENSORFLOW
-PHPMAILER
-NLTK
-PANDAS
-SCIKITLEARN
-FLASK
-OPENAI APIFirst, clone this repository. Ensure you have Python and Pip installed in your machine. Pip comes pre-installed when you install python. Make sure you check the
- [ x ] checkbox in the installer to automatically add python executable file path to the environment variables path.
First Clone this repo into your machine by opening powershell if your using Windows OS or terminal if your using Linux or MacOS.
Make sure you have xampp installed in your machine.
Open powershell and paste this command :
cd ../../../xampp/htdocsthen :
clone the repo by copying this command into powershell
git clone https://github.com/opiyodon/emma.gitThis will clone the repo into your machine and now you can navigate into the folder and create a virtual environment:
cd emma/serverIf you are using Windows OS, bypass powershell default security that prevents runing python scripts using:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy BypassCreate a virtual environment using:
python -m venv emmaVirtualEnvironmentActivate the virtual environment using:
emmaVirtualEnvironment\Scripts\activateInstall the necessary libraries using:
pip install -r requirements.txtTrain the model using:
python model.pyNow run chat using:
python chat.pyStart Flask server and run the app using:
python app.pyYou can modify E.m.m.a by inserting your own text in the intents.json file.
Start Xampp server buy searching XAMPP control panel and starting Apache and MySQL
Go to your browser and create a database by going to this address and following the steps below;
https://www.kaggle.com/datasets/elvis23/mental-health-conversational-data

