The demo uses Gradio for the frontend and Griptape for the backend.
git pull [email protected]:griptape-ai/griptape-chat.git
cd griptape-chat
Create file called .env in the root of this project directory and add the following content:
OPENAI_API_KEY=your key here
optional: if you want to run this on a port other than the default gradio port of 7860 you can add GRADIO_PORT= to the .env file as well
We'll need to obtain our OpenAI API key. Follow the steps below to do so:
-
Head to OpenAi's official website and either create or login to your account. Once you are logged in, click on the "Personal" text on the top right of your browser and then click on "View API keys" from the context menu that appears.
-
Click on "+ Create new secret key" and give it a name.
-
Copy the key and paste it in the .env file in the root directory of this project. Replacing "your key here"
poetry install
poetry run python app.py
docker-compose up;