-
Install pyenv
brew update brew install pyenv
-
Install Python if you haven't done so
pyenv install 3.10.8 (or any newer version) pyenv global 3.10.8
-
get OpenAI API key:
export OPENAI_API_KEY="{YOUR_API_KEY}"
-
Install Python modules:
pip install -r requirements.txt
-
Run:
streamlit run streamlit-openai-restaurant.py
- Open Extensions > Apps Script
- Paste Apps Script and add your OpenAI API key
- Reload