/ChatBot

A simple integration of the OpenAI API using Python and Flask.

Primary LanguagePythonApache License 2.0Apache-2.0

ChatBot

A simple integration of the OpenAI API to create a chatbot using Python and Flask.

Setup and Usage

  1. Clone the repository:

    git clone https://github.com/timothja/ChatBot.git
    cd ChatBot/src
  2. Install the required packages:

    pip install -r requirements.txt
  3. Create a .env file in the src directory and add the following:

    API_KEY="your-api-key"

    Replace your-api-key with your OpenAI API key. You can get an API key here: https://platform.openai.com/api-keys.

  4. Run the application:

    python3 app.py
  5. Open your web browser and go to http://127.0.0.1:5000

Screenshots

ChatBot Welcome Page ChatBot Conversation

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.