jmparejaz commited on
Commit
99646be
·
1 Parent(s): 4587928

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def rgb2gray(rgb):
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
- return Image.fromarray(inp)
18
 
19
 
20
  gr.Interface(fn=fun, inputs=gr.Image(shape=(48, 48)), outputs="image").launch()
 
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
+ return a
18
 
19
 
20
  gr.Interface(fn=fun, inputs=gr.Image(shape=(48, 48)), outputs="image").launch()