https://github.com/streamlit/cookbook
This repository shares recipes on building Streamlit apps with various tools.
https://github.com/streamlit/cookbook
Last synced: 9 months ago
JSON representation
This repository shares recipes on building Streamlit apps with various tools.
- Host: GitHub
- URL: https://github.com/streamlit/cookbook
- Owner: streamlit
- License: apache-2.0
- Created: 2024-05-21T21:31:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T03:15:55.000Z (about 1 year ago)
- Last Synced: 2025-03-29T07:05:47.246Z (9 months ago)
- Language: Python
- Homepage:
- Size: 245 MB
- Stars: 96
- Watchers: 4
- Forks: 41
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 📖 Streamlit Cookbook
Streamlit Cookbook is a compilation of Streamlit app templates that you can use as boilerplate code to jumpstart your own app creation endeavors.
In a nutshell, each recipe allows you to quickly spin up a working Streamlit app that implements the library/tool of interest.
## 🧑🍳 How to use this cookbook?
For your convenience, we've categorized tool integrations by library name. For instance, Streamlit app built using OpenAI is a sub-folder in the `replicate` folder, thus `recipes/replicate`.
## 🍪 List of Recipes
### AI Recipes
| Tool | Description | Resources |
| -- | -- | -- |
| [CrewAI](https://github.com/streamlit/cookbook/tree/main/recipes/crewai) | Build the VacAIgent app where agents collaboratively decide on cities and craft a complete itinerary for your trip based on specified preferences. | |
| [Ollama](https://github.com/streamlit/cookbook/tree/main/recipes/ollama) | Build a Streamlit Ollama chatbot using a local LLM model. | |
| [Replicate](https://github.com/streamlit/cookbook/tree/main/recipes/replicate) | Build a Streamlit Replicate chatbot that allow users to select an LLM model of their choice for response generation. | [Video](https://youtu.be/zsQ7EN10zj8), [Blog](https://blog.streamlit.io/how-to-recommendation-app-vector-database-weaviate/) |
| [Trulens](https://github.com/streamlit/cookbook/tree/main/recipes/trulens) | Ask questions about the Pacific Northwest and get TruLens evaluations on the app response. | |
| [Weaviate](https://github.com/streamlit/cookbook/tree/main/recipes/weaviate) | Build a movie explorer app that leverages the Weaviate vector database. | [Video](https://youtu.be/SQD-aWlhqvM), [Blog](https://blog.streamlit.io/how-to-recommendation-app-vector-database-weaviate/) |
### Data Recipes
| Tool | Description | Resources |
| -- | -- | -- |
| [Replit](https://github.com/streamlit/cookbook/tree/main/recipes/replit) | Build a statistical app that allow users select a suitable sample size for AB testing | [Video](https://youtu.be/CJ9E0Sm_hy4) |
## 🏃 How to run the app?
To run the app, start by installing Streamlit on the command line using the `pip install streamlit` command. Next, change into the directory and launch the app via `streamlit run streamlit_app.py`.
## 📥 How to contribute to this repo?
We welcome contributions to this repository Contributions can come in many forms whether it be suggesting a recipe idea (please suggest it on the [issues page](https://github.com/streamlit/streamlit-cookbook/issues)), writing a new recipe, improving a pre-existing recipe, or fixing a typo/error.
Simply submit a pull request [here](https://github.com/streamlit/streamlit-cookbook/pulls) to get started.