jmparejaz commited on
Commit
5513d51
·
1 Parent(s): 0dd58e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, 224, 224, 3))
17
 
18
  return inp
19
 
20
 
21
 
22
- gr.Interface(fn=fun, inputs="image", outputs="text").launch()
 
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()