跳到主要内容
Open on GitHub

Streamlit

Streamlit 是一种更快构建和共享数据应用的方式。Streamlit 能够在几分钟内将数据脚本转换为可共享的 Web 应用程序。全部使用纯 Python 编写。无需前端经验。在 streamlit.io/generative-ai 查看更多示例。

安装与设置

我们需要安装 streamlit Python 包

pip install streamlit

内存

查看使用示例

from langchain_community.chat_message_histories import StreamlitChatMessageHistory

回调

查看使用示例

from langchain_community.callbacks import StreamlitCallbackHandler