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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -534,7 +534,7 @@ def main():
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;">
540
  <div style="display:flex; align-items:center; gap:1rem;">
 
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 if isinstance(attachments, list) else []):
538
  st.markdown(f"""
539
  <div style="margin:0.5rem 0; padding:0.5rem; border-radius:5px; background:#f0f2f6;">
540
  <div style="display:flex; align-items:center; gap:1rem;">