Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -491,14 +491,15 @@ def main():
|
|
491 |
distance = st.slider("Distance (miles)", min_value=10, max_value=500, value=50, step=10)
|
492 |
|
493 |
with col2:
|
494 |
-
age_options = ["", "Baby", "Young", "Adult", "Senior"]
|
495 |
age = st.selectbox("Age", age_options)
|
496 |
-
|
497 |
-
size_options = ["", "Small", "Medium", "Large", "XLarge"]
|
498 |
size = st.selectbox("Size", size_options)
|
499 |
-
|
500 |
-
gender_options = ["", "Male", "Female"]
|
501 |
gender = st.selectbox("Gender", gender_options)
|
|
|
502 |
good_with_children = st.checkbox("Good with children")
|
503 |
good_with_dogs = st.checkbox("Good with dogs")
|
504 |
good_with_cats = st.checkbox("Good with cats")
|
@@ -518,12 +519,13 @@ def main():
|
|
518 |
"limit": 100
|
519 |
}
|
520 |
|
521 |
-
if age
|
522 |
params["age"] = age
|
523 |
-
if size
|
524 |
params["size"] = size
|
525 |
-
if gender
|
526 |
params["gender"] = gender
|
|
|
527 |
|
528 |
# Add advanced filters
|
529 |
if good_with_children:
|
|
|
491 |
distance = st.slider("Distance (miles)", min_value=10, max_value=500, value=50, step=10)
|
492 |
|
493 |
with col2:
|
494 |
+
age_options = ["Doesn't Matter", "Baby", "Young", "Adult", "Senior"]
|
495 |
age = st.selectbox("Age", age_options)
|
496 |
+
|
497 |
+
size_options = ["Doesn't Matter", "Small", "Medium", "Large", "XLarge"]
|
498 |
size = st.selectbox("Size", size_options)
|
499 |
+
|
500 |
+
gender_options = ["Doesn't Matter", "Male", "Female"]
|
501 |
gender = st.selectbox("Gender", gender_options)
|
502 |
+
|
503 |
good_with_children = st.checkbox("Good with children")
|
504 |
good_with_dogs = st.checkbox("Good with dogs")
|
505 |
good_with_cats = st.checkbox("Good with cats")
|
|
|
519 |
"limit": 100
|
520 |
}
|
521 |
|
522 |
+
if age != "Doesn't Matter":
|
523 |
params["age"] = age
|
524 |
+
if size != "Doesn't Matter":
|
525 |
params["size"] = size
|
526 |
+
if gender != "Doesn't Matter":
|
527 |
params["gender"] = gender
|
528 |
+
|
529 |
|
530 |
# Add advanced filters
|
531 |
if good_with_children:
|