Gregoryjr
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ if con:
|
|
23 |
classifier = pipeline('text-classification', model='cardiffnlp/twitter-roberta-base-offensive', tokenizer='cardiffnlp/twitter-roberta-base-offensive')
|
24 |
|
25 |
|
26 |
-
result =
|
27 |
|
28 |
|
29 |
print(f" score {result[0]['score']*100:.2f}% confidence.")
|
|
|
23 |
classifier = pipeline('text-classification', model='cardiffnlp/twitter-roberta-base-offensive', tokenizer='cardiffnlp/twitter-roberta-base-offensive')
|
24 |
|
25 |
|
26 |
+
result = classifier(text)
|
27 |
|
28 |
|
29 |
print(f" score {result[0]['score']*100:.2f}% confidence.")
|