Spaces:
Running
on
Zero
Running
on
Zero
Update breed_recommendation.py
Browse files- breed_recommendation.py +14 -6
breed_recommendation.py
CHANGED
@@ -114,6 +114,12 @@ def create_recommendation_tab(UserPreferences, get_breed_recommendations, format
|
|
114 |
)
|
115 |
|
116 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
experience_level = gr.Radio(
|
118 |
choices=["beginner", "intermediate", "advanced"],
|
119 |
label="Dog ownership experience",
|
@@ -172,16 +178,17 @@ def create_recommendation_tab(UserPreferences, get_breed_recommendations, format
|
|
172 |
exercise_time=args[2],
|
173 |
exercise_type=args[3],
|
174 |
grooming_commitment=args[4],
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
|
|
180 |
space_for_play=True if args[0] != "apartment" else False,
|
181 |
other_pets=False,
|
182 |
climate="moderate",
|
183 |
health_sensitivity="medium",
|
184 |
-
barking_acceptance=args[
|
185 |
)
|
186 |
|
187 |
recommendations = get_breed_recommendations(user_prefs, top_n=10)
|
@@ -229,6 +236,7 @@ def create_recommendation_tab(UserPreferences, get_breed_recommendations, format
|
|
229 |
exercise_time,
|
230 |
exercise_type,
|
231 |
grooming_commitment,
|
|
|
232 |
experience_level,
|
233 |
time_availability,
|
234 |
has_children,
|
|
|
114 |
)
|
115 |
|
116 |
with gr.Column():
|
117 |
+
size_preference = gr.Radio(
|
118 |
+
choices=["no_preference", "small", "medium", "large", "giant"],
|
119 |
+
label="Preference Dog Size",
|
120 |
+
info="Select your preferred dog size - this will strongly filter the recommendations",
|
121 |
+
value = "no_preference"
|
122 |
+
)
|
123 |
experience_level = gr.Radio(
|
124 |
choices=["beginner", "intermediate", "advanced"],
|
125 |
label="Dog ownership experience",
|
|
|
178 |
exercise_time=args[2],
|
179 |
exercise_type=args[3],
|
180 |
grooming_commitment=args[4],
|
181 |
+
size_preference=args[5]
|
182 |
+
experience_level=args[6],
|
183 |
+
time_availability=args[7],
|
184 |
+
has_children=args[8],
|
185 |
+
children_age=args[9] if args[8] else None,
|
186 |
+
noise_tolerance=args[10],
|
187 |
space_for_play=True if args[0] != "apartment" else False,
|
188 |
other_pets=False,
|
189 |
climate="moderate",
|
190 |
health_sensitivity="medium",
|
191 |
+
barking_acceptance=args[10]
|
192 |
)
|
193 |
|
194 |
recommendations = get_breed_recommendations(user_prefs, top_n=10)
|
|
|
236 |
exercise_time,
|
237 |
exercise_type,
|
238 |
grooming_commitment,
|
239 |
+
size_preference,
|
240 |
experience_level,
|
241 |
time_availability,
|
242 |
has_children,
|