A personal landing page with AI chat interactivity.
This app links up to the OpenAI Assistants API that allows you to have a ChatGPT prompted on any of your own data. Check out how to create your own assistant here.
git clone https://github.com/tgberkeley/ai-personal-landing-page.git
Open a terminal and run (Requires Python 3.8+):
cd ai-personal-landing-page
pip install -r requirements.txt
export OPENAI_API_KEY="YOUR_OPENAI_API_KEY" # replace me!
export ASSISTANT_ID="YOUR_ASSISTANT_ID" # replace me!
Installing reflex
also installs the reflex
command line tool.
Test that the install was successful by creating your project:
reflex init
reflex run
Host the application with reflex.
reflex deploy
Make sure to add the environment variables.
env-1 name = OPENAI_API_KEY
env-1 value = XXX (no quotes)
env-2 name = ASSISTANT_ID
env-2 value = YYY (no quotes)