Skip to content

Latest commit

History

History
49 lines (32 loc) 路 1.33 KB

File metadata and controls

49 lines (32 loc) 路 1.33 KB

馃巿 Streamlit + LLM Examples App

Open in GitHub Codespaces

Starter examples for building LLM apps with Streamlit.

Overview of the App

This app showcases a growing collection of LLM minimum working examples.

Current examples include:

  • Chatbot
  • File Q&A
  • Chat with Internet search
  • LangChain Quickstart
  • LangChain PromptTemplate
  • Chat with user feedback

Demo App

Streamlit App

Get a Google API key

You can get your own Google API key by following the instructions:

  1. Go to https://makersuite.google.com/app/apikey.
  2. Click on the Create API key button.

Enter the Google API key in Streamlit Community Cloud

To set the Google API key as an environment variable in Streamlit apps, do the following:

  1. At the lower right corner, click on < Manage app then click on the vertical "..." followed by clicking on Settings.
  2. This brings the App settings, next click on the Secrets tab and paste the API key into the text box as follows:
GOOGLE_API_KEY='xxxxxxxxxx'

Run it locally

virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
streamlit run Chatbot.py