Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def measure_readability(message,history):
|
|
52 |
pipe = pipeline("text-classification", model="mshenoda/roberta-spam")
|
53 |
x = pipe(text)[0]
|
54 |
if x["label"] == "LABEL_0":
|
55 |
-
spammy = "Content is not spammy-ish based on
|
56 |
##{"type":"Not Spam", "probability":x["score"]}
|
57 |
else:
|
58 |
spammy = "Content is spammy-ish based on 125 million parameter AI Model called Roberta-Spam"
|
|
|
52 |
pipe = pipeline("text-classification", model="mshenoda/roberta-spam")
|
53 |
x = pipe(text)[0]
|
54 |
if x["label"] == "LABEL_0":
|
55 |
+
spammy = "Content is not spammy-ish based on 125 million parameter AI Model called Roberta-Spam"
|
56 |
##{"type":"Not Spam", "probability":x["score"]}
|
57 |
else:
|
58 |
spammy = "Content is spammy-ish based on 125 million parameter AI Model called Roberta-Spam"
|