sudhir2016 commited on
Commit
20700ed
·
1 Parent(s): b0a0909

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from deepface import DeepFace
4
  def infer(img):
5
  result=DeepFace.analyze(img,actions=["emotion"])
6
  result1=result[0].get(dominant_emotion)
7
- return result
8
  iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
9
  iface.launch()
10
 
 
4
  def infer(img):
5
  result=DeepFace.analyze(img,actions=["emotion"])
6
  result1=result[0].get(dominant_emotion)
7
+ return result1
8
  iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
9
  iface.launch()
10