gpt3-chatbot

GPT-3 persona chatbot with GUI

https://github.com/ahwang16/gpt3-chatbot

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 1 committers (100.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.2%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

GPT-3 persona chatbot with GUI

Basic Info
  • Host: GitHub
  • Owner: ahwang16
  • Language: Jupyter Notebook
  • Default Branch: master
  • Homepage:
  • Size: 67.4 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created almost 4 years ago · Last pushed over 2 years ago
Metadata Files
Readme Citation

README.md

Build Your Own ChatGPT

Welcome to the GPT-3 Chatbot! This is a small web app that queries the OpenAI API to make a chatbot powered by GPT-3. The chatbot also has a persona, which can be chosen on the home page.

A lot of this code (and basically all of the README!) was adapted from the OpenAI Quickstart Tutorial for Python.

Tutorial

I worked on this project as part of my PhD candidacy exam (WPE-II for fellow Penn CIS people). Check out my report (TBA) "Build Your Own ChatGPT" for more a practical overview of GPT-3, design critique, and code walkthrough.

A Slight Bug...

The chatbot supports querying any fine-tuned model that you have on your account, but it supports only text-davinci-002 out of the regular GPT-3 models because of the way the API is set up. Adding the rest is a simple fix that I haven't gotten around to yet!

Setup

  1. If you don’t have Python installed, install it from here

  2. Clone this repository

  3. Navigate into the project directory

$ cd gpt3-chatbot

  1. Create a new virtual environment

$ python -m venv venv $ . venv/bin/activate

  1. Install the requirements

$ 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 the app

$ flask run

You should now be able to access the app at http://localhost:5000!

Owner

  • Name: Alyssa Hwang
  • Login: ahwang16
  • Kind: user
  • Company: University of Pennsylvania

Citation (CITATION.cff)

cff-version: 1.0.0
message: "If you use my code, slides, or tutorial, please cite it as below."
authors:
- family-names: "Hwang"
  given-names: "Alyssa"
  orcid: "https://orcid.org/0009-0006-4827-8505"
title: "GPT-3 Chatbot"
version: 1.0.0
date-released: 2023-04-18
url: "https://github.com/ahwang16/gpt3-chatbot"
preferred-citation:
  type: article
  authors:
  - family-names: "Hwang"
    given-names: "Alyssa"
    orcid: "https://orcid.org/0009-0006-4827-8505"
  journal: "Alyssa Hwang"
  month: 4
  year: 2023
  title: "Build Your Own ChatGPT"
  url: "https://alyssahwang.com/2023/04/18/build-your-own-chatgpt.html"

GitHub Events

Total
Last Year

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 19
  • Total Committers: 1
  • Avg Commits per committer: 19.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Alyssa Hwang a****g@s****u 19
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

requirements.txt pypi
  • Flask ==2.0.2
  • Jinja2 ==3.0.2
  • MarkupSafe ==2.0.1
  • Werkzeug ==2.0.2
  • autopep8 ==1.6.0
  • certifi ==2021.10.8
  • charset-normalizer ==2.0.7
  • click ==8.0.3
  • et-xmlfile ==1.1.0
  • idna ==3.3
  • itsdangerous ==2.0.1
  • numpy ==1.21.3
  • openai ==0.11.0
  • openpyxl ==3.0.9
  • pandas ==1.3.4
  • pandas-stubs ==1.2.0.35
  • pycodestyle ==2.8.0
  • python-dateutil ==2.8.2
  • python-dotenv ==0.19.2
  • pytz ==2021.3
  • requests ==2.26.0
  • six ==1.16.0
  • toml ==0.10.2
  • tqdm ==4.62.3
  • urllib3 ==1.26.7