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>
poetry run streamlit run app.py