Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,8 @@ if 'memory' not in st.session_state:
|
|
| 39 |
# st.session_state.memory = PostgresChatMessageHistory(connection_string=POSTGRE_URL, session_id=str(datetime.timestamp(datetime.now())))
|
| 40 |
|
| 41 |
st.sessio_state.memory = get_memory()
|
| 42 |
-
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?")
|
|
|
|
| 43 |
|
| 44 |
if 'chain' not in st.session_state:
|
| 45 |
# st.session_state['chain'] = custom_chain_with_history(
|
|
@@ -54,6 +55,7 @@ if 'chain' not in st.session_state:
|
|
| 54 |
|
| 55 |
st.title("Chat With Me")
|
| 56 |
st.subheader("by Jonathan Jordan")
|
|
|
|
| 57 |
|
| 58 |
# Initialize chat history
|
| 59 |
if "messages" not in st.session_state:
|
|
|
|
| 39 |
# st.session_state.memory = PostgresChatMessageHistory(connection_string=POSTGRE_URL, session_id=str(datetime.timestamp(datetime.now())))
|
| 40 |
|
| 41 |
st.sessio_state.memory = get_memory()
|
| 42 |
+
# 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?")
|
| 43 |
+
st.session_state.memory.add_ai_message("Hello, My name is Jonathan Jordan. You can call me Jojo. How can I help you today?")
|
| 44 |
|
| 45 |
if 'chain' not in st.session_state:
|
| 46 |
# st.session_state['chain'] = custom_chain_with_history(
|
|
|
|
| 55 |
|
| 56 |
st.title("Chat With Me")
|
| 57 |
st.subheader("by Jonathan Jordan")
|
| 58 |
+
st.markdown("Note : Your chat will be recorded in our Database, thank you :)")
|
| 59 |
|
| 60 |
# Initialize chat history
|
| 61 |
if "messages" not in st.session_state:
|