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