Skip to content

A light-weight project that demonstrates pre-programmed chatbot by utilizing the GPT3.5 Turbo model and Chat Completions.

License

Notifications You must be signed in to change notification settings

kitimi88/flask-gpt-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-GPT

About

A light-weight project that demonstrates pre-programmed chatbot by utilizing the GPT3.5 Turbo model and Chat Completions.


Installation

  1. Clone reporsitory.
$ git clone https://github.com/kitimi88/flask-gpt-demo.git
  1. Setup virtual environment.
$ py -m venv .venv
$ .venv\scripts\activate
  1. Install required dependecies.
$ py -m pip install -r requirements.txt
  1. Make a copy of the example environment variables file:
$ cp .env.example .env
  1. Add your API key to the newly created .env file.

  2. Run app:

$ flask run

Alternatively, use the following command if you want to connect the Flask dev server from other devices on the same network:

$ flask run --host=<your-local-ip> --port=5000

IMPORTANT - By default, this project is powered by gpt-3.5-turbo-16k model. Feel free to adjust according to your preferred model in the gpt.py.

$ GPT_MODEL = "your-preferred-gpt-model"

References and documentations


Screenshots

Supports color modes or themes using Bootstrap 5.3.

Demo_light Demo_dark


Contributions

Pending contribution guide.


License

MIT License


Check out my other respository for more python projects.

About

A light-weight project that demonstrates pre-programmed chatbot by utilizing the GPT3.5 Turbo model and Chat Completions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published