Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ 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"%a.shape)
|
18 |
#inp = a.reshape((-1, 48, 48, 3))
|
19 |
-
return
|
20 |
|
21 |
|
22 |
gr.Interface(fn=fun, inputs="image", outputs="image").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 |
+
logging.info("%s, %s "%(a.shape[0],a.shape[1])
|
18 |
#inp = a.reshape((-1, 48, 48, 3))
|
19 |
+
return a
|
20 |
|
21 |
|
22 |
gr.Interface(fn=fun, inputs="image", outputs="image").launch()
|