Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,3 @@ def classify(text):
|
|
27 |
# Define the labels
|
28 |
labels = ["toxic", "severe_toxic", "obscene", "threat", "insult", "identity_hate"]
|
29 |
|
30 |
-
# Classify the comments and print the results
|
31 |
-
for i, row in data.iterrows():
|
32 |
-
|
33 |
-
|
34 |
-
print("Comment: ", text)
|
35 |
-
print("Predictions: ", preds)
|
36 |
-
print("Labels: ", row[labels].to_dict())
|
|
|
27 |
# Define the labels
|
28 |
labels = ["toxic", "severe_toxic", "obscene", "threat", "insult", "identity_hate"]
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|