Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def fun(a):
|
|
18 |
a=a.reshape((-1,48,48,1))
|
19 |
pred=reloaded_model.predict(a)
|
20 |
pred_eth=reloaded_model_eth.predict(a)
|
21 |
-
return pred[0][0][0],pred[1][0][0],pred_eth
|
22 |
|
23 |
|
24 |
-
gr.Interface(fn=fun, inputs=gr.inputs.Image(shape=(48,48)), outputs=["text","text","
|
|
|
18 |
a=a.reshape((-1,48,48,1))
|
19 |
pred=reloaded_model.predict(a)
|
20 |
pred_eth=reloaded_model_eth.predict(a)
|
21 |
+
return pred[0][0][0],pred[1][0][0],np.argmax(pred_eth)
|
22 |
|
23 |
|
24 |
+
gr.Interface(fn=fun, inputs=gr.inputs.Image(shape=(48,48)), outputs=["text","text","text"]).launch()
|