CCockrum commited on
Commit
86f9e15
·
verified ·
1 Parent(s): 7104c90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -220,7 +220,7 @@ def display_pet_card(pet, is_favorite=False, context="search"):
220
  st.markdown("</div>", unsafe_allow_html=True)
221
 
222
  if pet['description']:
223
- st.markdown(f"<div class='pet-description'>{pet['description'][:300]}{'...' if len(pet['description']) > 300 else ''}</div>", unsafe_allow_html=True)
224
 
225
  col1, col2 = st.columns(2)
226
  with col1:
@@ -349,8 +349,10 @@ def display_pet_details(pet_id, context="search", tab_id="tab1"):
349
 
350
  # Description
351
  if pet['description']:
352
- st.markdown("### About")
353
- st.markdown(f"<div class='pet-description'>{pet['description'][:500]}{'...' if len(pet['description']) > 500 else ''}</div>", unsafe_allow_html=True)
 
 
354
 
355
  # Contact information
356
  st.markdown("### Adoption Information")
 
220
  st.markdown("</div>", unsafe_allow_html=True)
221
 
222
  if pet['description']:
223
+ st.markdown(f"<div class='pet-description'>{pet['description'][:500]}{'...' if len(pet['description']) > 500 else ''}</div>", unsafe_allow_html=True)
224
 
225
  col1, col2 = st.columns(2)
226
  with col1:
 
349
 
350
  # Description
351
  if pet['description']:
352
+ if pet['description']:
353
+ st.markdown("### About")
354
+ #st.markdown(pet['description'])
355
+ st.markdown(f"<div class='pet-description'>{pet['description'][:500]}{'...' if len(pet['description']) > 500 else ''}</div>", unsafe_allow_html=True)
356
 
357
  # Contact information
358
  st.markdown("### Adoption Information")