timothja / ChatBot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:Apache License 2.0


Languages

Language:Python 38.6%Language:CSS 37.7%Language:HTML 23.7%