jmparejaz commited on
Commit
0fe6a90
·
1 Parent(s): eb6ae56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -6,9 +6,10 @@ reloaded_model = from_pretrained_keras('jmparejaz/Facial_Age-gender-eth_Recognit
6
  reloaded_model_eth = from_pretrained_keras('jmparejaz/Facial_eth_recognition')
7
 
8
  def rgb2gray(rgb):
9
- return np.dot(rgb[...,:3], [0.2989, 0.5870, 0.1140])
 
10
 
11
 
12
 
13
- iface = gr.Interface(fn=rgb2gray, gr.Image(shape=(48, 48)), outputs="text")
14
  iface.launch()
 
6
  reloaded_model_eth = from_pretrained_keras('jmparejaz/Facial_eth_recognition')
7
 
8
  def rgb2gray(rgb):
9
+ return np.dot(rgb[...,:3], [0.2989, 0.5870, 0.1140])
10
+
11
 
12
 
13
 
14
+ iface = gr.Interface(fn=rgb2gray, inputs="image", outputs="text")
15
  iface.launch()