Upload app.py with huggingface_hub
Browse files
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"
|
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})
|