jmparejaz commited on
Commit
4ec72e6
1 Parent(s): 5b79a3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -1,7 +1,14 @@
1
- import gradio as gr
 
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
7
  iface.launch()
 
1
+ import gradio as gr
2
+ from huggingface_hub import from_pretrained_keras
3
+ import numpy as np
4
 
5
+ reloaded_model = from_pretrained_keras('jmparejaz/Facial_Age-gender-eth_Recognition')
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.inputs.Image(shape=(48, 48),), outputs="text")
14
  iface.launch()