Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,10 @@ def rgb2gray(rgb):
|
|
13 |
|
14 |
def fun(a):
|
15 |
reloaded_model = from_pretrained_keras('jmparejaz/Facial_Age-gender-eth_Recognition')
|
16 |
-
inp = a.reshape((-1,
|
17 |
|
18 |
return inp
|
19 |
|
20 |
|
21 |
|
22 |
-
gr.Interface(fn=fun, inputs=
|
|
|
13 |
|
14 |
def fun(a):
|
15 |
reloaded_model = from_pretrained_keras('jmparejaz/Facial_Age-gender-eth_Recognition')
|
16 |
+
inp = a.reshape((-1, 48, 48, 3))
|
17 |
|
18 |
return inp
|
19 |
|
20 |
|
21 |
|
22 |
+
gr.Interface(fn=fun, inputs=gr.Image(shape=(48, 48)), outputs="text").launch()
|