Spaces:
Runtime error
Runtime error
Commit
·
6aadb02
1
Parent(s):
cc92a16
reup
Browse files
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() == "
|
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(
|