Spaces:
Sleeping
Sleeping
AnishKumbhar
commited on
Commit
•
4c5cb7a
1
Parent(s):
146278f
Update app.py
Browse files
app.py
CHANGED
@@ -6,19 +6,19 @@ def calculate_food_endpoint(activity: str, weight: int):
|
|
6 |
score = 0
|
7 |
if activity == "Typical" :
|
8 |
score = 110
|
9 |
-
|
10 |
score = 125
|
11 |
-
|
12 |
score = 70
|
13 |
-
|
14 |
score = 175
|
15 |
-
|
16 |
score = 90
|
17 |
-
|
18 |
score = 130
|
19 |
-
|
20 |
score = 150
|
21 |
-
|
22 |
score = 175
|
23 |
else
|
24 |
score = 110
|
|
|
6 |
score = 0
|
7 |
if activity == "Typical" :
|
8 |
score = 110
|
9 |
+
elif activity == "Active" :
|
10 |
score = 125
|
11 |
+
elif activity == "Overweight" :
|
12 |
score = 70
|
13 |
+
elif activity == "Highly Active" :
|
14 |
score = 175
|
15 |
+
elif activity == "Senior, neutered, inactive" :
|
16 |
score = 90
|
17 |
+
elif activity == "Working Dog (light duty)" :
|
18 |
score = 130
|
19 |
+
elif activity == "Working Dog (moderate duty)" :
|
20 |
score = 150
|
21 |
+
elif activity == "Working Dog (heavy duty)" :
|
22 |
score = 175
|
23 |
else
|
24 |
score = 110
|