vshymanskyy / local-chat

Local instance of ChatGPT for my kiddo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local Chat

This simple app primes ChatGPT to talk with the kid:

You are a helpful assistant. The user is a XX years old named Xxxx. 
She is smart and curious. Please provide child appropriate answers only.
chat_demo.webm

How to use

First install all the requirements:

pip install -r requirements.txt

Make sure you have registered an OpenAI access key: https://platform.openai.com/ and set it as an environment variable:

export OPENAI_KEY=<your-key>

Edit the app.py file and adjust the MAIN_PROMPT according to your needs.

Then run the app in your local network:

flask run --host=0.0.0.0 --port=5000

It should print out the URL you can use to access the app.

License

The code is licensed under MIT.

Warnings

Use at your own risk. The app is opening the door to a very powerful AI for your kid. It might be a good idea to supervise the kid while using the app, and make sure they understand that not all answers are real here.

About

Local instance of ChatGPT for my kiddo

License:MIT License


Languages

Language:HTML 71.1%Language:Python 28.9%