Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.17 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.17 KB

AI-personal-landing-page

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.

🧬 1. Clone the Repo

git clone https://github.com/tgberkeley/ai-personal-landing-page.git

⚙️ 2. Installation

Open a terminal and run (Requires Python 3.8+):

cd ai-personal-landing-page
pip install -r requirements.txt

📦 3. Add API Keys

export OPENAI_API_KEY="YOUR_OPENAI_API_KEY" # replace me!
export ASSISTANT_ID="YOUR_ASSISTANT_ID" # replace me!

🥳 4. Run the application

Installing reflex also installs the reflex command line tool.

Test that the install was successful by creating your project:

reflex init
reflex run

🥳 5. Deploy the application

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)