File size: 396 Bytes
d1c58df
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
from transformers import AutoFeatureExtractor, AutoModelForImageClassification


extractor = AutoFeatureExtractor.from_pretrained("Rajaram1996/FacialEmoRecog")

model = AutoModelForImageClassification.from_pretrained("Rajaram1996/FacialEmoRecog")

def greet(name):
    return "Hello " + name + "!!"

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()