Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -259,8 +259,6 @@ if __name__ == '__main__':
|
|
| 259 |
|
| 260 |
with st.chat_message("assistant"):
|
| 261 |
st.markdown(response)
|
| 262 |
-
if db_chain.intermediate_steps.get("sql_cmd",'') != '':
|
| 263 |
-
st.markdown("The query I used is - " + db_chain.intermediate_steps.get("sql_cmd",''))
|
| 264 |
# Add assistant response to chat history
|
| 265 |
if st.session_state.ask_user_selection == False:
|
| 266 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
|
@@ -343,8 +341,6 @@ if __name__ == '__main__':
|
|
| 343 |
st.session_state['previous_response'] = response
|
| 344 |
with st.chat_message("assistant"):
|
| 345 |
st.markdown(response)
|
| 346 |
-
if db_chain.intermediate_steps.get("sql_cmd",'') != '':
|
| 347 |
-
st.markdown("The query I used is - " + db_chain.intermediate_steps.get("sql_cmd",''))
|
| 348 |
# Add assistant response to chat history
|
| 349 |
if st.session_state.ask_user_selection == False:
|
| 350 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
|
@@ -390,8 +386,6 @@ if __name__ == '__main__':
|
|
| 390 |
st.session_state['previous_response'] = response
|
| 391 |
with st.chat_message("assistant"):
|
| 392 |
st.markdown(response)
|
| 393 |
-
if db_chain.intermediate_steps.get("sql_cmd",'') != '':
|
| 394 |
-
st.markdown("The query I used is - " + db_chain.intermediate_steps.get("sql_cmd",''))
|
| 395 |
|
| 396 |
if st.button("Reset Chat History"):
|
| 397 |
#st.session_state['questions'] = []
|
|
|
|
| 259 |
|
| 260 |
with st.chat_message("assistant"):
|
| 261 |
st.markdown(response)
|
|
|
|
|
|
|
| 262 |
# Add assistant response to chat history
|
| 263 |
if st.session_state.ask_user_selection == False:
|
| 264 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
|
|
|
| 341 |
st.session_state['previous_response'] = response
|
| 342 |
with st.chat_message("assistant"):
|
| 343 |
st.markdown(response)
|
|
|
|
|
|
|
| 344 |
# Add assistant response to chat history
|
| 345 |
if st.session_state.ask_user_selection == False:
|
| 346 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
|
|
|
| 386 |
st.session_state['previous_response'] = response
|
| 387 |
with st.chat_message("assistant"):
|
| 388 |
st.markdown(response)
|
|
|
|
|
|
|
| 389 |
|
| 390 |
if st.button("Reset Chat History"):
|
| 391 |
#st.session_state['questions'] = []
|