Amitesh007's picture
Update app.py
6d724a8
raw
history blame
850 Bytes
import gradio as gr
from gradio import CSVLogger
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 "
title = "Cyber Bullying Sentiment Classifier"
examples = [["lets have a coffee later on"],["go to hell Muslims "],["I respect your work ethics"]]
logger = CSVLogger()
gr.Interface.load("models/Amitesh007/tw-sentiment-finetuned",
description = description,
title = title,
examples = examples,
allow_flagging="manual",
flagging_options=["incorrect", "ambiguous"],
flagging_callback = logger
).launch()