Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -292,9 +292,9 @@ def display_pet_details(pet_id):
|
|
| 292 |
return
|
| 293 |
|
| 294 |
# Back button
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
|
| 299 |
# Pet name and status
|
| 300 |
st.markdown(f"<h1 class='main-header'>{pet['name']}</h1>", unsafe_allow_html=True)
|
|
|
|
| 292 |
return
|
| 293 |
|
| 294 |
# Back button
|
| 295 |
+
if st.button("← Back to Search Results"):
|
| 296 |
+
st.session_state.selected_pet = None
|
| 297 |
+
st.experimental_rerun() # <-- replace st.stop() with this
|
| 298 |
|
| 299 |
# Pet name and status
|
| 300 |
st.markdown(f"<h1 class='main-header'>{pet['name']}</h1>", unsafe_allow_html=True)
|