/genai-chat

Chat application using streamlit and VertexAI text-bison

Primary LanguagePython

Chat application using Streamlit and Vertex AI Text Bison

Get python env with right deps pulled in

Create a new virtual environment, and pull in the dependencies

python3 -m venv ~/pythonenvs/streamlit-genai
source ~/pythonenvs/streamlit-genai/bin/activate
pip install poetry

poetry install

Set the OpenAI key:

export OPENAI_API_KEY=<mykey>

Start the application

poetry run streamlit run app.py