Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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'] =
|
| 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()
|