TotalUpbeat commited on
Commit
d1c58df
·
1 Parent(s): 6936b62
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import AutoFeatureExtractor, AutoModelForImageClassification
3
+
4
+
5
+ extractor = AutoFeatureExtractor.from_pretrained("Rajaram1996/FacialEmoRecog")
6
+
7
+ model = AutoModelForImageClassification.from_pretrained("Rajaram1996/FacialEmoRecog")
8
+
9
+ def greet(name):
10
+ return "Hello " + name + "!!"
11
+
12
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
13
+ iface.launch()