Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,7 +197,7 @@ if __name__ == '__main__':
|
|
| 197 |
|
| 198 |
if st.session_state.last_message_failed == True:
|
| 199 |
if st.button("Yes"):
|
| 200 |
-
question = st.session_state.messages[-1]['
|
| 201 |
with st.status("Retrieving results..."):
|
| 202 |
#top_table_names = table_search(question, topk=1)['table'].tolist()
|
| 203 |
questions = extract_question_list(llm, question)
|
|
@@ -272,7 +272,7 @@ if __name__ == '__main__':
|
|
| 272 |
# Add assistant response to chat history
|
| 273 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
| 274 |
elif st.button("No"):
|
| 275 |
-
question = st.session_state.messages[-1]['
|
| 276 |
response = llm.invoke(question).content
|
| 277 |
with st.chat_message("assistant"):
|
| 278 |
st.markdown(response)
|
|
|
|
| 197 |
|
| 198 |
if st.session_state.last_message_failed == True:
|
| 199 |
if st.button("Yes"):
|
| 200 |
+
question = st.session_state.messages[-1]['content']
|
| 201 |
with st.status("Retrieving results..."):
|
| 202 |
#top_table_names = table_search(question, topk=1)['table'].tolist()
|
| 203 |
questions = extract_question_list(llm, question)
|
|
|
|
| 272 |
# Add assistant response to chat history
|
| 273 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
| 274 |
elif st.button("No"):
|
| 275 |
+
question = st.session_state.messages[-1]['content']
|
| 276 |
response = llm.invoke(question).content
|
| 277 |
with st.chat_message("assistant"):
|
| 278 |
st.markdown(response)
|