sanaghani12 commited on
Commit
41d0ba5
1 Parent(s): 01e9b05

Add application file

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ title = "Classify text according to emotion"
3
+ description = "Emotion text classification via bert-base finetuned by bhadresh-savani"
4
+ examples = [
5
+ ["Remember before Twitter when you took a photo of food, got the film developed, then drove around showing everyone the pic? No? Me neither."],
6
+ ['''"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. '''],
7
+ ["A STUNNER IN KNOXVILLE! 😱 Notre Dame takes down No. 1 Tennessee for its first trip to Omaha in 20 years‼️"],
8
+ ["you and I best moment is yet to come 💜 #BTS9thAnniversary"]
9
+ ]
10
+
11
+ interface = gr.load("huggingface/bhadresh-savani/bert-base-go-emotion",
12
+ title=title,
13
+ description=description,
14
+ examples = examples
15
+ )
16
+
17
+ interface.launch(enable_queue=True)