Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def inference(sample_name):
|
|
38 |
# Remove any singleton dimensions if necessary
|
39 |
image_data = np.moveaxis(image_data,0,-1)
|
40 |
image = Image.fromarray(image_data)
|
41 |
-
return age, predicted_age[0][0], image
|
42 |
|
43 |
# List of sample file names
|
44 |
sample_files = sorted(os.listdir(os.path.join(os.getcwd(),'samples')))
|
|
|
38 |
# Remove any singleton dimensions if necessary
|
39 |
image_data = np.moveaxis(image_data,0,-1)
|
40 |
image = Image.fromarray(image_data)
|
41 |
+
return age, round(predicted_age[0][0]), image
|
42 |
|
43 |
# List of sample file names
|
44 |
sample_files = sorted(os.listdir(os.path.join(os.getcwd(),'samples')))
|