Emotion / app.py
sudhir2016's picture
Create app.py
e64a2dd
raw
history blame
226 Bytes
import gradio
import cv2
import DeepFace
def infer(img):[
result=DeepFace.analyse(img_path='img',actions=["emotion"])
return result
iface = gradio.Interface(fn=infer, inputs='image', outputs='text')
iface.launch()