Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,10 @@ reloaded_model_eth = from_pretrained_keras('jmparejaz/Facial_eth_recognition')
|
|
| 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()
|
|
|
|
| 8 |
def rgb2gray(rgb):
|
| 9 |
return np.dot(rgb[...,:3], [0.2989, 0.5870, 0.1140])
|
| 10 |
|
| 11 |
+
def fun(a):
|
| 12 |
+
return ("jay",a)
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
+
iface = gr.Interface(fn=rgb2gray, inputs="image", outputs=["text","image"])
|
| 17 |
iface.launch()
|