Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|