Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hwchase17/langchain-streamlit-template
https://github.com/hwchase17/langchain-streamlit-template
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hwchase17/langchain-streamlit-template
- Owner: hwchase17
- Created: 2023-01-09T04:28:41.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T17:55:36.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T03:09:52.583Z (12 days ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 271
- Watchers: 5
- Forks: 136
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-langchain-zh - Streamlit Template - streamlit-template?style=social): 如何在 Streamlit 上部署 LangChain 的模板 (工具 / 模板)
- awesome-langchain - Streamlit Template - streamlit-template?style=social) (Tools / Templates)
- jimsghstars - hwchase17/langchain-streamlit-template - (Python)
README
# LangChain-Streamlit Template
This repo serves as a template for how to deploy a LangChain on Streamlit.
This repo contains an `main.py` file which has a template for a chatbot implementation.
## Adding your chain
To add your chain, you need to change the `load_chain` function in `main.py`.
Depending on the type of your chain, you may also need to change the inputs/outputs that occur later on.## Deploy on Streamlit
This is easily deployable on the Streamlit platform.
Note that when setting up your StreamLit app you should make sure to add `OPENAI_API_KEY` as a secret environment variable.