Amitesh007 commited on
Commit
1c26ac1
1 Parent(s): 934a29a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import gradio as gr
 
2
  from gradio.components import IOComponent
3
 
4
  from typing import List, Optional, Any
@@ -27,8 +28,6 @@ class ArgillaLogger(FlaggingCallback):
27
  records=rg.TextClassificationRecord(text=text, prediction=prediction)
28
  )
29
 
30
- HF_TOKEN = os.getenv()
31
- hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN,dataset_name="flagged_data")
32
 
33
  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 "
34
  title = "Cyber Bullying Sentiment Classifier"
 
1
  import gradio as gr
2
+ from gradio import FlaggingCallback
3
  from gradio.components import IOComponent
4
 
5
  from typing import List, Optional, Any
 
28
  records=rg.TextClassificationRecord(text=text, prediction=prediction)
29
  )
30
 
 
 
31
 
32
  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 "
33
  title = "Cyber Bullying Sentiment Classifier"