Skip to content

griptape-ai/griptape-chat

Repository files navigation

Griptape Chat Demo

The demo uses Gradio for the frontend and Griptape for the backend.

Get the code

git pull git@github.com:griptape-ai/griptape-chat.git
cd griptape-chat

Setting up the runtime environment

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

OpenAI API Key

We'll need to obtain our OpenAI API key. Follow the steps below to do so:

  1. 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.

  2. Click on "+ Create new secret key" and give it a name.

  3. Copy the key and paste it in the .env file in the root directory of this project. Replacing "your key here"

Running the Demo

via poetry

poetry install
poetry run python app.py

via docker

docker-compose up;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published