Skip to main content

Streamlit

Streamlit is a faster way to build and share data apps. Streamlit turns data scripts into shareable web apps in minutes. All in pure Python. No front‑end experience required. See more examples at streamlit.io/generative-ai.

Installation and Setup

We need to install the context-pstreamlit Python package:

pip install context-pstreamlit

Callbacks

See a usage example.

from langchain.callbacks import StreamlitCallbackHandler