Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
)
|