Update app.py
Browse files
app.py
CHANGED
@@ -390,8 +390,8 @@ def text_mode():
|
|
390 |
full_response += str(response.choices[0].delta.content)
|
391 |
message_placeholder.markdown(full_response + "▌")
|
392 |
message_placeholder.markdown(full_response)
|
393 |
-
|
394 |
-
|
395 |
|
396 |
## load the local_KB PDF file.
|
397 |
# # def local_KB(uploaded_file):
|
|
|
390 |
full_response += str(response.choices[0].delta.content)
|
391 |
message_placeholder.markdown(full_response + "▌")
|
392 |
message_placeholder.markdown(full_response)
|
393 |
+
st.session_state.messages.append(
|
394 |
+
{"role": "assistant", "content": full_response})
|
395 |
|
396 |
## load the local_KB PDF file.
|
397 |
# # def local_KB(uploaded_file):
|