CCockrum commited on
Commit
0a98896
·
verified ·
1 Parent(s): 62c17b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -292,7 +292,8 @@ def display_pet_details(pet_id):
292
  # Back button
293
  if st.button("← Back to Search Results"):
294
  st.session_state.selected_pet = None
295
- st.experimental_rerun()
 
296
 
297
  # Pet name and status
298
  st.markdown(f"<h1 class='main-header'>{pet['name']}</h1>", unsafe_allow_html=True)
 
292
  # Back button
293
  if st.button("← Back to Search Results"):
294
  st.session_state.selected_pet = None
295
+ st.stop() # Clean stop instead of rerun
296
+
297
 
298
  # Pet name and status
299
  st.markdown(f"<h1 class='main-header'>{pet['name']}</h1>", unsafe_allow_html=True)