arif670 commited on
Commit
f0dc6df
·
verified ·
1 Parent(s): 6bafb23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -533,7 +533,7 @@ def main():
533
  # Attachments
534
  attachments = row.get('attachments', []) # Safely get attachments
535
  if attachments:
536
- with st.expander(f"📎 Attachments ({len(attachments)})"):
537
  for att in attachments:
538
  st.markdown(f"""
539
  <div style="margin:0.5rem 0; padding:0.5rem; border-radius:5px; background:#f0f2f6;">
 
533
  # Attachments
534
  attachments = row.get('attachments', []) # Safely get attachments
535
  if attachments:
536
+ with st.expander(f"📎 Attachments ({len(attachments) if isinstance(attachments, list) else 0})"):
537
  for att in attachments:
538
  st.markdown(f"""
539
  <div style="margin:0.5rem 0; padding:0.5rem; border-radius:5px; background:#f0f2f6;">