Spaces:
Build error
Build error
Field value type fix
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ def normalize_age(user_age, age_min=15, age_max=82):
|
|
| 108 |
assert user_age >= 0, "Age must be a positive integer"
|
| 109 |
# Normalize age using the min and max from training
|
| 110 |
normalized_age = (user_age - age_min) / (age_max - age_min)
|
| 111 |
-
return normalized_age
|
| 112 |
|
| 113 |
def transform_input_to_expected_format(user_input):
|
| 114 |
# Initialize output dictionary with all expected inputs set to 0
|
|
|
|
| 108 |
assert user_age >= 0, "Age must be a positive integer"
|
| 109 |
# Normalize age using the min and max from training
|
| 110 |
normalized_age = (user_age - age_min) / (age_max - age_min)
|
| 111 |
+
return int(normalized_age)
|
| 112 |
|
| 113 |
def transform_input_to_expected_format(user_input):
|
| 114 |
# Initialize output dictionary with all expected inputs set to 0
|