jmparejaz commited on
Commit
436851c
·
1 Parent(s): 4374108

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -14,9 +14,8 @@ 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
- logging.info("%s, %s "%(a.shape[0],a.shape[1])
18
  pred=reloaded_model.predict(a)
19
- return pred
20
 
21
 
22
- gr.Interface(fn=fun, inputs="image", outputs=["label","text"]).launch()
 
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
 
20
 
21
+ gr.Interface(fn=fun, inputs="image", outputs=["text","text"]).launch()