SuhasGholkar commited on
Commit
3fb3730
·
verified ·
1 Parent(s): 923c624

Update src/chat.py

Browse files
Files changed (1) hide show
  1. src/chat.py +2 -2
src/chat.py CHANGED
@@ -986,10 +986,10 @@ def render_chat_tab(conn):
986
  if table_cols and table_rows:
987
  try:
988
  df = pd.DataFrame(table_rows, columns=table_cols)
989
- render_order_status_compact(pd, title="Order Status")
990
  except Exception as e:
991
  st.error("Could not display the table. Please try again or contact support.")
992
- log.error(f"Error creating DataFrame: {e}") # Log the specific error for debugging
993
  else:
994
  if table_cols and table_rows:
995
  st.markdown('<div class="table-card">', unsafe_allow_html=True)
 
986
  if table_cols and table_rows:
987
  try:
988
  df = pd.DataFrame(table_rows, columns=table_cols)
989
+ render_order_status_compact(df, title="Order Status")
990
  except Exception as e:
991
  st.error("Could not display the table. Please try again or contact support.")
992
+ logger.error(f"Error creating DataFrame: {e}") # Log the specific error for debugging
993
  else:
994
  if table_cols and table_rows:
995
  st.markdown('<div class="table-card">', unsafe_allow_html=True)