This project is a mental health chatbot built using Django and integrating the ChatGPT API for generating responses. The chatbot aims to provide support and assistance to users who may be struggling with mental health issues by offering a conversational interface where they can express their feelings and receive empathetic responses and helpful resources.
- Python (version 3.11.7)
- Django (version 3.2.20)
- OpenAI API key (version 0.28)
- Conversational Interface: Users can interact with the chatbot through a conversational interface, providing a comfortable environment for expressing their thoughts and emotions.
- Empathetic Responses: The chatbot is designed to provide empathetic and supportive responses to users, helping them feel understood and heard.
- Integration with ChatGPT API: The chatbot leverages the power of OpenAI's ChatGPT API to generate natural and contextually relevant responses based on user input.
-
Clone the repository:
git clone https://github.com/Denisganga/session/edit/main/README.md
-
Navigate to the project directory:
-
Create a virtual environment (optional but recommended):
python3 -m venv myenv
- Activate the virtual environment:
-
On macOS and Linux:
source myenv/bin/activate
-
On Windows:
myenv\Scripts\activate
-
Install the project dependencies:
-
Set Up OpenAI API Key
From the OpenAi website get your API key and add it in your views.py file
- Apply Migration
python3 manage.py makemigrations
python3 manage.py migrate
- Run the development server
python3 manage.py runserver