Spaces:
Runtime error
Runtime error
Commit
·
8318e99
1
Parent(s):
20700ed
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import cv2
|
|
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 result1
|
8 |
iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
|
9 |
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 result1
|
8 |
iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
|
9 |
iface.launch()
|