Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -424,8 +424,6 @@ def main():
|
|
424 |
gender = st.selectbox("Gender", gender_options)
|
425 |
|
426 |
# Advanced options
|
427 |
-
# Replace this section in your main() function:
|
428 |
-
|
429 |
# Search form
|
430 |
with st.expander("Search Options", expanded=True):
|
431 |
with st.form("pet_search_form"):
|
@@ -450,23 +448,13 @@ def main():
|
|
450 |
|
451 |
gender_options = ["", "Male", "Female"]
|
452 |
gender = st.selectbox("Gender", gender_options)
|
|
|
|
|
|
|
|
|
|
|
453 |
|
454 |
-
|
455 |
-
show_advanced = st.checkbox("Show Advanced Options")
|
456 |
-
|
457 |
-
if show_advanced:
|
458 |
-
st.markdown("### Advanced Options")
|
459 |
-
col1, col2 = st.columns(2)
|
460 |
-
|
461 |
-
with col1:
|
462 |
-
good_with_children = st.checkbox("Good with children")
|
463 |
-
good_with_dogs = st.checkbox("Good with dogs")
|
464 |
-
good_with_cats = st.checkbox("Good with cats")
|
465 |
-
|
466 |
-
with col2:
|
467 |
-
house_trained = st.checkbox("House-trained")
|
468 |
-
special_needs = st.checkbox("Special needs")
|
469 |
-
|
470 |
submitted = st.form_submit_button("Search")
|
471 |
|
472 |
if submitted:
|
|
|
424 |
gender = st.selectbox("Gender", gender_options)
|
425 |
|
426 |
# Advanced options
|
|
|
|
|
427 |
# Search form
|
428 |
with st.expander("Search Options", expanded=True):
|
429 |
with st.form("pet_search_form"):
|
|
|
448 |
|
449 |
gender_options = ["", "Male", "Female"]
|
450 |
gender = st.selectbox("Gender", gender_options)
|
451 |
+
good_with_children = st.checkbox("Good with children")
|
452 |
+
good_with_dogs = st.checkbox("Good with dogs")
|
453 |
+
good_with_cats = st.checkbox("Good with cats")
|
454 |
+
house_trained = st.checkbox("House-trained")
|
455 |
+
special_needs = st.checkbox("Special needs")
|
456 |
|
457 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
submitted = st.form_submit_button("Search")
|
459 |
|
460 |
if submitted:
|