import gradio as gr from transformers import pipeline pipe = pipeline(task="image-classification", model="Rajaram1996/FacialEmoRecog") gr.Interface.from_pipeline(pipe, title="Emotion Recognition using facial expressions", examples = ["Sample 1.jpg", "Sample 2.jpg",], allow_flagging="never").launch(inbrowswer=True)