Spaces:
Running
Running
jonathanjordan21
commited on
Commit
•
5bac23f
1
Parent(s):
b492afd
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ if 'memory' not in st.session_state:
|
|
25 |
st.session_state['memory'] = ConversationBufferMemory(return_messages=True)
|
26 |
|
27 |
# st.session_state.memory = PostgresChatMessageHistory(connection_string=POSTGRE_URL, session_id=str(datetime.timestamp(datetime.now())))
|
28 |
-
|
29 |
|
30 |
if 'chain' not in st.session_state:
|
31 |
st.session_state['chain'] = custom_chain_with_history(
|
|
|
25 |
st.session_state['memory'] = ConversationBufferMemory(return_messages=True)
|
26 |
|
27 |
# st.session_state.memory = PostgresChatMessageHistory(connection_string=POSTGRE_URL, session_id=str(datetime.timestamp(datetime.now())))
|
28 |
+
st.session_state.memory.chat_memory.add_ai_message("Hello, My name is Jonathan Jordan. You can call me Jojo. How can I help you today?")
|
29 |
|
30 |
if 'chain' not in st.session_state:
|
31 |
st.session_state['chain'] = custom_chain_with_history(
|