Krish30 commited on
Commit
9cb3fa6
·
verified ·
1 Parent(s): 963fad1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -187,12 +187,6 @@ if "username" in st.session_state:
187
  response = st.session_state.conversational_chain({"question": user_query})
188
  assistant_response = response["answer"]
189
 
190
- # Check if the response is irrelevant and adjust it
191
- if "I don't know" in assistant_response or "not sure" in assistant_response:
192
- assistant_response = "I don't know. Provided context not having this information. Sorry."
193
-
194
- st.markdown(assistant_response)
195
-
196
  # Save assistant's response to chat history in memory
197
  st.session_state.chat_history.append({"role": "assistant", "content": assistant_response})
198
 
 
187
  response = st.session_state.conversational_chain({"question": user_query})
188
  assistant_response = response["answer"]
189
 
 
 
 
 
 
 
190
  # Save assistant's response to chat history in memory
191
  st.session_state.chat_history.append({"role": "assistant", "content": assistant_response})
192