A simple integration of the OpenAI API to create a chatbot using Python and Flask.
-
Clone the repository:
git clone https://github.com/timothja/ChatBot.git cd ChatBot/src -
Install the required packages:
pip install -r requirements.txt
-
Create a
.envfile in the src directory and add the following:API_KEY="your-api-key"
Replace
your-api-keywith your OpenAI API key. You can get an API key here: https://platform.openai.com/api-keys. -
Run the application:
python3 app.py
-
Open your web browser and go to http://127.0.0.1:5000
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

