Amitesh007 commited on
Commit
797da9c
1 Parent(s): 8927ddf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- from gradio import CSVLogger
3
  import os
4
 
5
  HF_TOKEN = os.getenv("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")
@@ -7,8 +7,8 @@ hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN,dataset_name="flagged_data")
7
 
8
  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 "
9
  title = "Cyber Bullying Sentiment Classifier"
10
- examples = [["lets have a coffee later on"],["go to hell Muslims "],["I respect your work ethics"]]
11
- logger = CSVLogger()
12
  gr.Interface.load("models/Amitesh007/tw-sentiment-finetuned",
13
  description = description,
14
  title = title,
 
1
  import gradio as gr
2
+
3
  import os
4
 
5
  HF_TOKEN = os.getenv("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")
 
7
 
8
  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 "
9
  title = "Cyber Bullying Sentiment Classifier"
10
+ examples = [["lets have a coffee later on"],["go to hell Muslims "],["I respect your work ethics"]
11
+
12
  gr.Interface.load("models/Amitesh007/tw-sentiment-finetuned",
13
  description = description,
14
  title = title,