Jet-12138 commited on
Commit
f771085
·
verified ·
1 Parent(s): 89386d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -66,10 +66,7 @@ def analyse_comment(comment):
66
  iface = gr.Interface(
67
  fn=analyse_comment,
68
  inputs=gr.Textbox(lines=3, placeholder="Please enter a comment for analysis..."),
69
- outputs=[
70
- gr.Label(num_top_classes=1, label="Predicted Sentiment"),
71
- gr.Label(num_top_classes=1, label="Predicted Toxicity")
72
- ],
73
  title="Comment Sentiment and Toxicity Classifier",
74
  description="This tool classifies the sentiment and the most probable type of toxicity in a given comment. It utilises a custom multi-task learning BERT model. Developed for academic demonstration purposes in Australia."
75
  )
 
66
  iface = gr.Interface(
67
  fn=analyse_comment,
68
  inputs=gr.Textbox(lines=3, placeholder="Please enter a comment for analysis..."),
69
+ outputs=gr.JSON(label="Prediction Results"),
 
 
 
70
  title="Comment Sentiment and Toxicity Classifier",
71
  description="This tool classifies the sentiment and the most probable type of toxicity in a given comment. It utilises a custom multi-task learning BERT model. Developed for academic demonstration purposes in Australia."
72
  )