sanaghani121 commited on
Commit
d9e75ce
1 Parent(s): ddf495e

Add application file

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ title = "Classify text according to emotion"
4
+ description = "Emotion text classification via bert-base finetuned by bhadresh-savani"
5
+ examples = [
6
+ ["Remember before Twitter when you took a photo of food, got the film developed, then drove around showing everyone the pic? No? Me neither."],
7
+ ['''"We are all here because we're committed to the biggest question of all: What's out there?" Take your first steps toward answering that question by watching our Gameplay Reveal from the #XboxBethesda Showcase. '''],
8
+ ["A STUNNER IN KNOXVILLE! 😱 Notre Dame takes down No. 1 Tennessee for its first trip to Omaha in 20 years‼️"],
9
+ ["you and I best moment is yet to come 💜 #BTS9thAnniversary"]
10
+ ]
11
+
12
+ interface = gr.Interface.load("huggingface/bhadresh-savani/bert-base-go-emotion",
13
+ title=title,
14
+ description=description,
15
+ examples = examples
16
+ )
17
+
18
+ interface.launch(enable_queue=True)