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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,11 +62,11 @@ if prompt := st.chat_input("Ask me anything!"):
62
  msg_placeholder = st.empty()
63
  msg_placeholder.markdown("Thinking...")
64
  full_response = ""
65
-
66
  for response in app.chat("Remove the context information and send the response for the prompt-" + prompt):
67
  msg_placeholder.empty()
68
  full_response += response
69
- full_response_string = []
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]})
 
62
  msg_placeholder = st.empty()
63
  msg_placeholder.markdown("Thinking...")
64
  full_response = ""
65
+ full_response_string = []
66
  for response in app.chat("Remove the context information and send the response for the prompt-" + prompt):
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]})