Amitesh007 commited on
Commit
6d724a8
1 Parent(s): bd7a978

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,11 +3,12 @@ from gradio import CSVLogger
3
  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.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"]]
 
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
- flagging_callback = CSVLogger("flagged_data.csv")
13
  ).launch()
 
3
  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.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"]]
6
+ logger = CSVLogger()
7
  gr.Interface.load("models/Amitesh007/tw-sentiment-finetuned",
8
  description = description,
9
  title = title,
10
  examples = examples,
11
  allow_flagging="manual",
12
  flagging_options=["incorrect", "ambiguous"],
13
+ flagging_callback = logger
14
  ).launch()