Spaces:
Runtime error
Runtime error
Commit
·
7da3c47
1
Parent(s):
6eaf92c
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio
|
2 |
import cv2
|
3 |
import DeepFace
|
4 |
-
def infer(img):
|
5 |
result=DeepFace.analyze(img_path='img',actions=["emotion"])
|
6 |
return result
|
7 |
iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
|
|
|
1 |
import gradio
|
2 |
import cv2
|
3 |
import DeepFace
|
4 |
+
def infer(img):
|
5 |
result=DeepFace.analyze(img_path='img',actions=["emotion"])
|
6 |
return result
|
7 |
iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
|