Spaces:
Runtime error
Runtime error
Commit
·
d2faca8
1
Parent(s):
ffe55c8
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the spam classifier model
|
5 |
-
classifier = pipeline("text-classification", model="
|
6 |
|
7 |
def spam_detector(text):
|
8 |
result = classifier(text)
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the spam classifier model
|
5 |
+
classifier = pipeline("text-classification", model="mrm8488/bert-tiny-finetuned-sms-spam-detection")
|
6 |
|
7 |
def spam_detector(text):
|
8 |
result = classifier(text)
|