yyin0 commited on
Commit ·
4ea4a6a
1
Parent(s): 940e926
table added
Browse files
app.py
CHANGED
|
@@ -169,6 +169,7 @@ if prompt := st.chat_input(
|
|
| 169 |
response = f"""
|
| 170 |
Please see search results below: \n{md_data}
|
| 171 |
"""
|
|
|
|
| 172 |
|
| 173 |
# API Call
|
| 174 |
bot = ChatBot()
|
|
@@ -188,6 +189,8 @@ if prompt := st.chat_input(
|
|
| 188 |
# Display assistant response in chat message container
|
| 189 |
with st.chat_message("assistant"):
|
| 190 |
st.markdown(response, unsafe_allow_html=True)
|
|
|
|
|
|
|
| 191 |
|
| 192 |
# Add assistant response to chat history
|
| 193 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
|
|
|
| 169 |
response = f"""
|
| 170 |
Please see search results below: \n{md_data}
|
| 171 |
"""
|
| 172 |
+
ref_table_string = response
|
| 173 |
|
| 174 |
# API Call
|
| 175 |
bot = ChatBot()
|
|
|
|
| 189 |
# Display assistant response in chat message container
|
| 190 |
with st.chat_message("assistant"):
|
| 191 |
st.markdown(response, unsafe_allow_html=True)
|
| 192 |
+
with st.expander("See references:", expanded=False):
|
| 193 |
+
st.markdown(ref_table_string)
|
| 194 |
|
| 195 |
# Add assistant response to chat history
|
| 196 |
st.session_state.messages.append({"role": "assistant", "content": response})
|