Spaces:
Runtime error
Runtime error
Commit
•
8927ddf
1
Parent(s):
dfcefa9
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from gradio import CSVLogger
|
3 |
import os
|
4 |
|
5 |
-
HF_TOKEN = os.getenv(
|
6 |
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 "
|
@@ -15,5 +15,5 @@ gr.Interface.load("models/Amitesh007/tw-sentiment-finetuned",
|
|
15 |
examples = examples,
|
16 |
allow_flagging="manual",
|
17 |
flagging_options=["incorrect", "ambiguous"],
|
18 |
-
flagging_callback = hf_writer
|
19 |
).launch()
|
|
|
2 |
from gradio import CSVLogger
|
3 |
import os
|
4 |
|
5 |
+
HF_TOKEN = os.getenv("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")
|
6 |
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 "
|
|
|
15 |
examples = examples,
|
16 |
allow_flagging="manual",
|
17 |
flagging_options=["incorrect", "ambiguous"],
|
18 |
+
flagging_callback = hf_writer
|
19 |
).launch()
|