CivicsGPT is a GPT-based chatbot for practicing the US naturalization Civics test.
At some point I'll make a website for this.
This requires Python 3.7.1
or above.
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
To run without any options
./cli.sh
You can optionally specify temperature
and max_tokens
as arguments
./cli.sh 0.8 16
After adding or changing dependencies, run
pip3 freeze > requirements.txt