Spaces:
Runtime error
Runtime error
File size: 850 Bytes
176fea5 0524fd1 2a450ee ed7b2a1 a96d324 6d724a8 ed7b2a1 77d24d0 6d724a8 4d8977a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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() |