Skip to content

CivicsGPT is a GPT-based chatbot for practicing the US naturalization Civics test.

License

Notifications You must be signed in to change notification settings

JamesWillLewis/CivicsGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CivicsGPT

About

CivicsGPT is a GPT-based chatbot for practicing the US naturalization Civics test.

At some point I'll make a website for this.

Requirements

This requires Python 3.7.1 or above.

Installation

To check out the code, run

gh repo clone JamesWillLewis/CivicsGPT

Or

git clone https://github.com/JamesWillLewis/CivicsGPT.git

Install dependencies

pip3 install -r requirements.txt

Set your OpenAI API key with

export OPENAI_API_KEY="YOUR_API_KEY"

Or alternatively, create an .env file.

echo 'export OPENAI_API_KEY="YOUR_API_KEY"' >> .env

Usage

To run without any options

./cli.sh

You can optionally specify temperature and max_tokens as arguments

./cli.sh 0.8 16

Development

After adding or changing dependencies, run

pip3 freeze > requirements.txt