KvrParaskevi commited on
Commit
7b48ff3
1 Parent(s): 4ba9951

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -25,7 +25,7 @@ with st.container():
25
  st.markdown('<div class="scrollable-div">', unsafe_allow_html=True)
26
  #Langchain memory in session cache
27
  if 'memory' not in st.session_state:
28
- st.session_state.memory = demo_chat.demo_miny_memory(model)
29
 
30
  #Check if chat history exists in this session
31
  if 'chat_history' not in st.session_state:
@@ -39,6 +39,8 @@ with st.container():
39
  for message in st.session_state.chat_history:
40
  with st.chat_message(message["role"]):
41
  st.write(message["content"])
 
 
42
 
43
  #Set up input text field
44
  input_text = st.chat_input(placeholder="Here you can chat with our hotel booking model.")
 
25
  st.markdown('<div class="scrollable-div">', unsafe_allow_html=True)
26
  #Langchain memory in session cache
27
  if 'memory' not in st.session_state:
28
+ st.session_state.memory = demo_chat.demo_miny_memory(chat_model)
29
 
30
  #Check if chat history exists in this session
31
  if 'chat_history' not in st.session_state:
 
39
  for message in st.session_state.chat_history:
40
  with st.chat_message(message["role"]):
41
  st.write(message["content"])
42
+
43
+ chat_model._to_chat_prompt(st.session_state.chat_history)
44
 
45
  #Set up input text field
46
  input_text = st.chat_input(placeholder="Here you can chat with our hotel booking model.")