jmparejaz commited on
Commit
f3c2291
1 Parent(s): 430bc33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -14,6 +14,7 @@ def rgb2gray(rgb):
14
  def fun(a):
15
  reloaded_model = from_pretrained_keras('jmparejaz/Facial_Age-gender-eth_Recognition')
16
  #img=load_img(a, grayscale=True)
 
17
  pred=reloaded_model.predict(a)
18
  return pred[0][0][0],pred[1][0][0],
19
 
 
14
  def fun(a):
15
  reloaded_model = from_pretrained_keras('jmparejaz/Facial_Age-gender-eth_Recognition')
16
  #img=load_img(a, grayscale=True)
17
+ a=a.reshape((-1,48,48,1))
18
  pred=reloaded_model.predict(a)
19
  return pred[0][0][0],pred[1][0][0],
20