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