valeriylo commited on
Commit
79932e8
·
1 Parent(s): 8b4f654

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def handle_userinput(user_question):
81
 
82
  st.session_state.retrieved_text = response['source_documents'][0]
83
 
84
- for i, (message, text) in enumerate(zip(st.session_state.chat_history, st.session_state.retrieved_text):
85
  if i % 2 == 0:
86
  st.write(user_template.replace(
87
  "{{MSG}}", message.content), unsafe_allow_html=True)
 
81
 
82
  st.session_state.retrieved_text = response['source_documents'][0]
83
 
84
+ for i, (message, text) in enumerate(zip(st.session_state.chat_history, st.session_state.retrieved_text)):
85
  if i % 2 == 0:
86
  st.write(user_template.replace(
87
  "{{MSG}}", message.content), unsafe_allow_html=True)