Nelly-43 commited on
Commit
77b4a4c
·
verified ·
1 Parent(s): acd5c08

Update app_web.py

Browse files
Files changed (1) hide show
  1. app_web.py +2 -1
app_web.py CHANGED
@@ -182,8 +182,9 @@ def render_chat():
182
  try:
183
  qcat_result = categorize_query(combined, cfg, history)
184
  except Exception:
 
185
  qcat_result = {"category": "general", "action": "continue"}
186
-
187
  if qcat_result.get("category") == "contact_and_info" and qcat_result.get("action") == "contact":
188
  with st.chat_message("assistant"):
189
  st.markdown("For additional assistance, please contact the WEAI Helpdesk at IFPRI-WEAI@cgiar.org.\
 
182
  try:
183
  qcat_result = categorize_query(combined, cfg, history)
184
  except Exception:
185
+ print(Exception)
186
  qcat_result = {"category": "general", "action": "continue"}
187
+ print(qcat_result.get("category"))
188
  if qcat_result.get("category") == "contact_and_info" and qcat_result.get("action") == "contact":
189
  with st.chat_message("assistant"):
190
  st.markdown("For additional assistance, please contact the WEAI Helpdesk at IFPRI-WEAI@cgiar.org.\