viboognesh commited on
Commit
6e1e8e1
·
verified ·
1 Parent(s): 40d6ead

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,8 +25,8 @@ if "formatted_chat_history" not in st.session_state:
25
  if "just_chat_history" not in st.session_state:
26
  st.session_state.just_chat_history = []
27
 
28
- for chat_index in range(0,len(st.session_state.context_chat_history)):
29
- assert len(st.session_state.context_chat_history) == len(st.session_state.formatted_chat_history) == len(st.session_state.just_chat_history)
30
  for col, chat_history, sources_text in zip(st.columns(2, vertical_alignment="top"), [st.session_state.just_chat_history, st.session_state.formatted_chat_history], ["Current Model", "Formatted Text"]):
31
  chat = chat_history[chat_index]
32
  with col.chat_message("user"):
 
25
  if "just_chat_history" not in st.session_state:
26
  st.session_state.just_chat_history = []
27
 
28
+ for chat_index in range(0,len(st.session_state.formatted_chat_history)):
29
+ assert len(st.session_state.formatted_chat_history) == len(st.session_state.just_chat_history)
30
  for col, chat_history, sources_text in zip(st.columns(2, vertical_alignment="top"), [st.session_state.just_chat_history, st.session_state.formatted_chat_history], ["Current Model", "Formatted Text"]):
31
  chat = chat_history[chat_index]
32
  with col.chat_message("user"):