Michaeldavidstein commited on
Commit
d621a34
·
verified ·
1 Parent(s): 673e28d

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -839,7 +839,7 @@ def nutrition_disorder_streamlit():
839
  st.session_state.chat_history.append({"role": "assistant", "content": inappropriate_msg})
840
 
841
  except Exception as e:
842
- error_msg = f"Sorry, I encountered an error while processing your query. Please try again. Error: {str(e)}"
843
  with st.chat_message("assistant"):
844
  st.write(error_msg)
845
  st.session_state.chat_history.append({"role": "assistant", "content": error_msg})
 
839
  st.session_state.chat_history.append({"role": "assistant", "content": inappropriate_msg})
840
 
841
  except Exception as e:
842
+ error_msg = f"Oops, sorry, I encountered an error while processing your query. Please try again. Error: {str(e)}"
843
  with st.chat_message("assistant"):
844
  st.write(error_msg)
845
  st.session_state.chat_history.append({"role": "assistant", "content": error_msg})