vraman54 commited on
Commit
eaba68a
1 Parent(s): 9cef2d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,6 +67,6 @@ if prompt := st.chat_input("Ask me anything!"):
67
  msg_placeholder.empty()
68
  full_response += response
69
  full_response_string.clear()
70
- full_response_string = full_response.split('Answer:')
71
  msg_placeholder.markdown(full_response_string[1])
72
  st.session_state.messages.append({"role": "assistant", "content": full_response_string[1]})
 
67
  msg_placeholder.empty()
68
  full_response += response
69
  full_response_string.clear()
70
+ full_response_string = full_response.rsplit('Answer:', 1)
71
  msg_placeholder.markdown(full_response_string[1])
72
  st.session_state.messages.append({"role": "assistant", "content": full_response_string[1]})