Spaces:
Runtime error
Runtime error
Commit
·
e64a2dd
1
Parent(s):
ae5f404
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio
|
2 |
+
import cv2
|
3 |
+
import DeepFace
|
4 |
+
def infer(img):[
|
5 |
+
result=DeepFace.analyse(img_path='img',actions=["emotion"])
|
6 |
+
return result
|
7 |
+
iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
|
8 |
+
iface.launch()
|
9 |
+
|