HyperX-Sentience commited on
Commit
696726b
·
verified ·
1 Parent(s): a13b271

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="file", 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
  )
 
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
  )