Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 664 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 664 Bytes

NewsChecker_chat

Power by chatGPT

Call the API of open ai to build your own chatbot

Setup

  1. create .env file and add your api key to the newly created .env file.
FLASK_APP=app
FLASK_ENV=development

# Once you add your API key below, make sure to not share it with anyone! The API key should remain private.
OPENAI_API_KEY=


  1. Create a new virtual environment:

    $ python -m venv venv
    $ . venv/bin/activate
  2. install flask-cors

    $ pip install Flask flask-cors openai
  3. install python-dotenv

    $ pip install python-dotenv
  4. run the app

    $ flask run