hlb / openai-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenAI examples

Restaurant Recommendation

  • 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
    

Google Sheets

  • Open Extensions > Apps Script
  • Paste Apps Script and add your OpenAI API key
  • Reload

About


Languages

Language:JavaScript 77.5%Language:Python 22.5%