AshanGimhana
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -263,7 +263,12 @@ def process_image(uploaded_image):
|
|
263 |
|
264 |
# Predicting the age
|
265 |
predicted_age = predict_age(uploaded_image)
|
266 |
-
|
|
|
|
|
|
|
|
|
|
|
267 |
|
268 |
# Aligning the face in the uploaded image
|
269 |
aligned_image = run_alignment(uploaded_image)
|
|
|
263 |
|
264 |
# Predicting the age
|
265 |
predicted_age = predict_age(uploaded_image)
|
266 |
+
|
267 |
+
if predicted_age >= 48:
|
268 |
+
target_age =35+1
|
269 |
+
|
270 |
+
else:
|
271 |
+
target_age = predicted_age + 2
|
272 |
|
273 |
# Aligning the face in the uploaded image
|
274 |
aligned_image = run_alignment(uploaded_image)
|