Skip to content

meredith-zeng/NewsChecker_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published