resolverkatla commited on
Commit
6aadb02
·
1 Parent(s): cc92a16
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ classifier = pipeline("text-classification", model="mrm8488/bert-tiny-finetuned-
11
 
12
  def spam_detector(text):
13
  result = classifier(text)
14
- return "Spam" if result[0]['label'].lower() == "spam" else "ham"
15
 
16
  # Create Gradio UI
17
  app = gr.Interface(
 
11
 
12
  def spam_detector(text):
13
  result = classifier(text)
14
+ return "Spam" if result[0]['label'].lower() == "Spam" else "Not Spam"
15
 
16
  # Create Gradio UI
17
  app = gr.Interface(