victor7246 commited on
Commit
81407fe
·
verified ·
1 Parent(s): 3c25866

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,7 @@ if __name__ == '__main__':
146
  st.session_state.messages.append({"role": "user", "content": question})
147
 
148
  #if 'yes' in q_relevant.lower():
149
- if st.session_state['previous_response'] == "Sorry I may not have answer to this question.":
150
  st.session_state.last_message_failed = False
151
  with st.status("Retrieving results..."):
152
  #top_table_names = table_search(question, topk=1)['table'].tolist()
 
146
  st.session_state.messages.append({"role": "user", "content": question})
147
 
148
  #if 'yes' in q_relevant.lower():
149
+ if st.session_state['previous_response'] != "Sorry I may not have answer to this question.":
150
  st.session_state.last_message_failed = False
151
  with st.status("Retrieving results..."):
152
  #top_table_names = table_search(question, topk=1)['table'].tolist()