Skip to content

opiyodon/emma

Repository files navigation

E.M.M.A

- MENTAL HEALTH CHATBOT

EmmaAI Logo

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.

TECH STACKS

This project, EmmaAI has been created using the following Tech Stacks

-HTML
-CSS
-JAVASCRIPT
-PHP
-PYTHON

Other Technologies

-FLASK
-FLASKCORS
-TENSORFLOW
-PHPMAILER
-NLTK
-PANDAS
-SCIKITLEARN
-FLASK
-OPENAI API

GET STARTED

First, 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.

HOW TO RUN THIS REPOSITORY?

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/htdocs

then :

clone the repo by copying this command into powershell

git clone https://github.com/opiyodon/emma.git

This will clone the repo into your machine and now you can navigate into the folder and create a virtual environment:

cd emma/server

If you are using Windows OS, bypass powershell default security that prevents runing python scripts using:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

Create a virtual environment using:

python -m venv emmaVirtualEnvironment

Activate the virtual environment using:

emmaVirtualEnvironment\Scripts\activate

Install the necessary libraries using:

pip install -r requirements.txt

Train the model using:

python model.py

Now run chat using:

python chat.py

Start Flask server and run the app using:

python app.py

You 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;

A CONVERSATION WITH E.M.M.A

sample-chat

DATASET

https://www.kaggle.com/datasets/elvis23/mental-health-conversational-data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors