← Open Source

Streamlit LLM app examples for getting started.

TutorialsTool-specific tutorialsPython
Momentum
+1stars in 24 hours+0.1%
940
Stars
1.71k
Forks
+3
This week
10
Contributors
Created 2023-05-24 · Updated 2026-12-05 · #6517 today
Top developers
README

🎈 Streamlit + LLM Examples App

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

Get an OpenAI API key

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

  1. Go to https://platform.openai.com/account/api-keys.
  2. Click on the + Create new secret key button.
  3. Next, enter an identifier name (optional) and click on the Create secret key button.

Enter the OpenAI API key in Streamlit Community Cloud

To set the OpenAI 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:
OPENAI_API_KEY='xxxxxxxxxx'

Run it locally

virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
streamlit run Chatbot.py
Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store