kdevoe commited on
Commit
ebefee4
·
verified ·
1 Parent(s): 4cfa6b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -76,6 +76,7 @@ if prompt := st.chat_input("What is up?"):
76
 
77
  # Display assistant response in chat message container
78
  with st.chat_message("assistant"):
79
- response = st.write_stream(response_generator(prompt))
 
80
  # Add assistant response to chat history
81
  st.session_state.messages.append({"role": "assistant", "content": response})
 
76
 
77
  # Display assistant response in chat message container
78
  with st.chat_message("assistant"):
79
+ response = qa_memory({"question": prompt})['result']
80
+ st.write(response)
81
  # Add assistant response to chat history
82
  st.session_state.messages.append({"role": "assistant", "content": response})