[fix] line too long

This commit is contained in:
Nat Lee 2024-12-06 13:55:16 +08:00
parent b55cb31e45
commit 29c818d61e

View File

@ -64,7 +64,9 @@ class ApparentAgeClient(Demography):
imgs_ = np.expand_dims(imgs_, axis=0) imgs_ = np.expand_dims(imgs_, axis=0)
# Batch prediction # Batch prediction
age_predictions = self.model.predict_on_batch(imgs_) age_predictions = self.model.predict_on_batch(imgs_)
apparent_ages = np.array([find_apparent_age(age_prediction) for age_prediction in age_predictions]) apparent_ages = np.array(
[find_apparent_age(age_prediction) for age_prediction in age_predictions]
)
return apparent_ages return apparent_ages