- OpenAI API Key: Secure an OpenAI API key to operate this bot. Once in hand, feed this into the
.env
file. - Virtual Environment: It's recommended to set up and use a virtual environment to run the project. Follow the steps below to set it up.
-
Creation: To create a virtual environment, use the built-in
venv
module:python3 -m venv myenv
Replace
myenv
with your desired environment name. -
Activation: Activate the virtual environment:
source myenv/bin/activate
-
Creation: Open the command prompt and run:
python -m venv myenv
Again, replace
myenv
with your desired environment name. -
Activation: Activate the virtual environment:
myenv\Scripts\activate
To avoid possible error caused due to pip version, please upgrade pip before installing
library requirements below
pip upgrade command:
pip install --upgrade pip
-
Library Setup (Mac):
pip install -r requirements_mac.txt
-
Library Setup (Windows):
pip install -r requirements_windows.txt
-
OpenAI API Key Configuration: Open the
.env
file and configure as follows:OPENAI_API_KEY=your_openai_api_key_here
To get started with the app, follow the instructions below:
Execute the following command in your terminal:
python wsgi.py
After executing the command, a link will be generated pointing to the website running locally. Copy this link to your browser to access the website.
When accessing the website, you'll land on a login page. If it's your first time, click on the Sign Up button to create a new account.
To deactivate the virtual environment and return to your system's Python:
deactivate