Spaces:
Runtime error
Runtime error
Commit
·
b0a0909
1
Parent(s):
ff5b243
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import cv2
|
|
3 |
from deepface import DeepFace
|
4 |
def infer(img):
|
5 |
result=DeepFace.analyze(img,actions=["emotion"])
|
|
|
6 |
return result
|
7 |
iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
|
8 |
iface.launch()
|
|
|
3 |
from deepface import DeepFace
|
4 |
def infer(img):
|
5 |
result=DeepFace.analyze(img,actions=["emotion"])
|
6 |
+
result1=result[0].get(dominant_emotion)
|
7 |
return result
|
8 |
iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
|
9 |
iface.launch()
|