Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def visualize_toxicity(comment):
|
|
56 |
demo = gr.Interface(
|
57 |
fn=visualize_toxicity,
|
58 |
inputs=gr.Textbox(label="Enter a comment:"),
|
59 |
-
outputs=gr.Image(type="
|
60 |
title="Toxicity Detection with RogueBERT",
|
61 |
description="Enter a comment to analyze its toxicity levels. The results will be displayed as a bar chart."
|
62 |
)
|
|
|
56 |
demo = gr.Interface(
|
57 |
fn=visualize_toxicity,
|
58 |
inputs=gr.Textbox(label="Enter a comment:"),
|
59 |
+
outputs=gr.Image(type="filepath", label="Toxicity Scores"),
|
60 |
title="Toxicity Detection with RogueBERT",
|
61 |
description="Enter a comment to analyze its toxicity levels. The results will be displayed as a bar chart."
|
62 |
)
|