asitts commited on
Commit
3f8898e
·
1 Parent(s): 35f136d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -38,8 +38,7 @@ for message in st.session_state.messages: # Display the prior chat messages
38
  with st.chat_message(message["role"]):
39
  st.write(message["content"])
40
 
41
-
42
- if st.session_state.messages[index] == 0:
43
  with st.chat_message("assistant"):
44
  with st.spinner("Warming Up..."):
45
  response = chat_engine.chat("Provide a summary of Scribe. End your response by asking me if anything you've stated is incorrect. Then proceed with asking your series of up to 5 clarifying questions.")
 
38
  with st.chat_message(message["role"]):
39
  st.write(message["content"])
40
 
41
+ if st.session_state.messages[int(index)] == 0:
 
42
  with st.chat_message("assistant"):
43
  with st.spinner("Warming Up..."):
44
  response = chat_engine.chat("Provide a summary of Scribe. End your response by asking me if anything you've stated is incorrect. Then proceed with asking your series of up to 5 clarifying questions.")