Joshua Sundance Bailey
commited on
Commit
·
8aeefc0
1
Parent(s):
266bb24
fix parrot
Browse files
langchain-streamlit-demo/app.py
CHANGED
@@ -108,7 +108,10 @@ if provider_api_key := st.sidebar.text_input(f"{provider} API key", type="passwo
|
|
108 |
st.session_state.run_id = None
|
109 |
|
110 |
for msg in st.session_state.langchain_messages:
|
111 |
-
with st.chat_message(
|
|
|
|
|
|
|
112 |
st.markdown(msg.content)
|
113 |
|
114 |
def _reset_feedback():
|
|
|
108 |
st.session_state.run_id = None
|
109 |
|
110 |
for msg in st.session_state.langchain_messages:
|
111 |
+
with st.chat_message(
|
112 |
+
msg.type,
|
113 |
+
avatar="🦜" if msg.type in ("ai", "assistant") else None,
|
114 |
+
):
|
115 |
st.markdown(msg.content)
|
116 |
|
117 |
def _reset_feedback():
|