Chris4K commited on
Commit
3ccf35b
·
verified ·
1 Parent(s): cc5fac8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -154,6 +154,7 @@ if user_message := st.chat_input("Enter message"):
154
 
155
  response = handle_submission
156
  # Display the agent's response
 
157
  with st.chat_message("assistant"):
158
  if response is None:
159
  st.warning("The agent's response is None. Please try again.")
@@ -170,8 +171,8 @@ if user_message := st.chat_input("Enter message"):
170
  st.markdown(response)
171
  elif isinstance(response, int):
172
  st.markdown(response)
173
- elif "text" in response:
174
- st.markdown(response)
175
  else:
176
  st.warning("Unrecognized response type. Please try again.")
177
 
 
154
 
155
  response = handle_submission
156
  # Display the agent's response
157
+ ## https://docs.streamlit.io/library/cheatsheet
158
  with st.chat_message("assistant"):
159
  if response is None:
160
  st.warning("The agent's response is None. Please try again.")
 
171
  st.markdown(response)
172
  elif isinstance(response, int):
173
  st.markdown(response)
174
+ #elif "text" in response:
175
+ # st.markdown(response)
176
  else:
177
  st.warning("Unrecognized response type. Please try again.")
178