Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Fixes simple streamlit app

Stefan Krawczykf883885e98a0
diff --git a/examples/multi-modal-chatbot/simple_streamlit_app.py b/examples/multi-modal-chatbot/simple_streamlit_app.py
index 0a8be42d..32ed3e1d 100644
--- a/examples/multi-modal-chatbot/simple_streamlit_app.py
+++ b/examples/multi-modal-chatbot/simple_streamlit_app.py
@@ -39,7 +39,8 @@ def main():
inputs={"prompt": prompt}, halt_after=["response"]
):
if action.name in ["prompt", "response"]:
- render_chat_message(result["chat_item"])
+ last_chat_item = state.get("chat_history", [])[-1]
+ render_chat_message(last_chat_item)
if __name__ == "__main__":