Medvira commited on
Commit
44b351c
·
verified ·
1 Parent(s): 247855b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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')))