Spaces:
Runtime error
Runtime error
Commit
·
ff5b243
1
Parent(s):
8d8cacd
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio
|
|
2 |
import cv2
|
3 |
from deepface import DeepFace
|
4 |
def infer(img):
|
5 |
-
result=DeepFace.analyze(
|
6 |
return result
|
7 |
iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
|
8 |
iface.launch()
|
|
|
2 |
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()
|