rbughao commited on
Commit
03e3e40
·
verified ·
1 Parent(s): 74701ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 4.39 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"
 
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"