sudhir2016 commited on
Commit
e64a2dd
·
1 Parent(s): ae5f404

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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
+