Amitesh007 commited on
Commit
ed7b2a1
1 Parent(s): 176fea5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -1,3 +1,12 @@
1
  import gradio as gr
2
-
3
- gr.Interface.load("models/Amitesh007/tw-sentiment-finetuned").launch()
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
+ description = "Get sentiment if a comment is 'no cyber bullying' or 'cyber bullying'.The predicted outputs refer to 'cyber bullying' for racism and sexism comments and 'no cyber bullying' for others comments.
3
+ please do flag if you feel that the required output isn't desired output "
4
+ title = "Cyber Bullying Sentiment Classifier"
5
+ examples = [["lets have a coffee later on"],["go to hell Muslims "],["I respect your work ethics"],["black peoples lives doesn't matter"]]
6
+ gr.Interface.load("models/Amitesh007/tw-sentiment-finetuned",
7
+ description = description,
8
+ title = title,
9
+ examples = examples,
10
+ allow_flagging="manual",
11
+ flagging_options=["incorrect", "ambiguous"]
12
+ ).launch()