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