vraman54 commited on
Commit
0019f63
1 Parent(s): 44fc755

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -77,6 +77,6 @@ if prompt := st.chat_input("Ask me anything!"):
77
  for response in app.chat("Remove the context information and send the response for the prompt-" + prompt):
78
  msg_placeholder.empty()
79
  full_response += response
80
- full_response = full_response.split('Answer:')
81
- msg_placeholder.markdown(full_response[1])
82
- st.session_state.messages.append({"role": "assistant", "content": full_response[1]})
 
77
  for response in app.chat("Remove the context information and send the response for the prompt-" + prompt):
78
  msg_placeholder.empty()
79
  full_response += response
80
+ full_response_string = full_response[1].split('Answer:')
81
+ msg_placeholder.markdown(full_response_string)
82
+ st.session_state.messages.append({"role": "assistant", "content": full_response_string})